Create files with fake data. In many formats. With no efforts.
MIT License
Published by barseghyanartur over 1 year ago
SFTPStorage
and correspondent tests.Published by barseghyanartur over 1 year ago
subject
argument to the EmlFileProvider
. UpdatePublished by barseghyanartur over 1 year ago
FileFromPathProvider
provider, which simply picks a filecreate_inner_file_from_path
Published by barseghyanartur over 1 year ago
format_func
argument to most of the providers. This allows tofaker.provider.Python.pystr_format
, which hasfaker.provider.Python.parse
, since the latter is?
, !
, #
into something else using bothify
method).faker_file.base.pystr_format_func
in format_func
argumentcreate_inner_random_file_from_dir
inner function.Published by barseghyanartur over 1 year ago
xml_file
provider.Published by barseghyanartur over 1 year ago
data_columns
for xml_file
provider fromSequence[Tuple[str, str]]
to Dict[str, str]
.pdf_file
provider, changed default value of pdf_generator_cls
PdfkitPdfGenerator
value to its' string representationmp3_file
provider, changed default value of mp3_generator_cls
GttsMp3Generator
value to its' string representationPublished by barseghyanartur over 1 year ago
GenericFileProvider
.Published by barseghyanartur over 1 year ago
create_inner_generic_file
inner function.generic_file
support to CLI.Published by barseghyanartur over 1 year ago
list_create_inner_file
-like functions to the EML
GenericFileProvider
provider to support generic file types.Published by barseghyanartur over 1 year ago
This release introduces minor backwards incompatible changes.
basename
has been added to all providers, innerlist_create_inner_file
has been added, using whichcount
value)func_list
(each pair (Callable, kwargs)
corresponds to a singleZipFileProvider
and TarFileProvider
have been altered toXML
files through XmlFileProvider
.Published by barseghyanartur over 1 year ago
This release introduces minor backwards incompatible changes.
DynamicTemplate
support for PDF
file. The generate
method of the BasePdfGenerator
and classes derived from it, got two new arguments: data
(Dict[str, Any]
), and provider
(Union[Faker, Generator, Provider]
). If you have implemented custom generators for PDF
(pdf_file
provider), make sure to reflect mentioned changes in your code.Published by barseghyanartur over 1 year ago
DynamicTemplate
support for DOCX
and ODT
files.Published by barseghyanartur over 1 year ago
In memory of the victims of the Genocide of Armenians.
mp3_generator_cls
and pdf_generator_cls
CLI optionsmp3_file
and pdf_file
respectively.num_files
CLI option for all providers.Published by barseghyanartur over 1 year ago
mp3_file
and pdf_file
providers.Published by barseghyanartur over 1 year ago
Published by barseghyanartur over 1 year ago
Published by barseghyanartur over 1 year ago
Published by barseghyanartur over 1 year ago
Note, that this release introduces breaking changes!
PdfFileProvider
by adding pdf_generator_cls
and pdf_generator_kwargs
optional arguments to the pdf_file
method. Added ReportlabPdfGenerator
class based on the famous reportlab
library. Default is still PdfkitPdfGenerator
.encoding
was something specific for pdfkit
library, it was moved from pdf_file
method to PdfkitPdfGenerator
, to which it can be passed in pdf_generator_kwargs
.encoding
argument explicitly, make sure to make correspondent changes. Note, that using the new ReportlabPdfGenerator
class could speed-up PDF generation by about 40 times.Published by barseghyanartur over 1 year ago
CsvFileProvider
. Tuple[str, str]
becomes Tuple[str, ...]
.Published by barseghyanartur over 1 year ago
Release dedicated to my dear valentine - Anahit.
filename
to data
property of values returned by Mp3FileProvider
provider (StringValue
, BytesValue
).