Skip to content

Releases: barseghyanartur/faker-file

0.9.2

23 Dec 00:12
Compare
Choose a tag to compare
  • Add RrfFileProvider.
  • Added SQLAlchemy factory example.

0.9.1

21 Dec 19:55
Compare
Choose a tag to compare
  • Fixes in cloud storage.
  • Documentation fixes.

0.9

17 Dec 22:11
Compare
Choose a tag to compare
0.9
  • Add optional encoding argument to CsvFileProvider and PdfFileProvider providers.
  • Add root_path argument to cloud storages.
  • Moved all image related code (IcoFileProvider, JpegFileProvider, PngFileProvider, SvgFileProvider, WebpFileProvider) to ImageMixin. Moved all tabular data related code (OdsFileProvider, XlsxFileProvider) to TabularDataMixin.
  • Documentation improvements.

0.8

16 Dec 00:28
Compare
Choose a tag to compare
0.8

Note, that this release introduces breaking changes!

  • All file system based operations are moved to a separate abstraction layer of file storages. The following storages have been implemented: FileSystemStorage, PathyFileSystemStorage, AWSS3Storage, GoogleCloudStorage and AzureStorage. The root_path and rel_path params of the providers are deprecated in favour of storages. See the docs more usage examples.

0.7

12 Dec 23:14
Compare
Choose a tag to compare
0.7
  • Added RandomFileFromDirProvider which picks a random file from directory given.
  • Improved docs.

0.6

10 Dec 22:02
Compare
Choose a tag to compare
0.6
  • Pass optional generator argument to inner functions of the ZipFileProvider.
  • Added create_inner_zip_file inner function which allows to create nested ZIPs.
  • Reached test coverage of 100%.

0.5

09 Dec 22:21
Compare
Choose a tag to compare
0.5

Note, that this release introduces breaking changes!

  • Added ODS file support.

  • Switched to tablib for easy, non-variant support of various formats (XLSX, ODS).

  • Silence imgkit logging output.

  • ZipFileProvider allows to pass arbitrary arguments to inner functions. Put all your inner function arguments into a dictionary and pass it in create_inner_file_args key inside options argument. See the example below.

        zip_file = ZipFileProvider(None).file(
            prefix="zzz_archive_",
            options={
                "count": 5,
                "create_inner_file_func": create_inner_docx_file,
                "create_inner_file_args": {
                    "prefix": "zzz_file_",
                    "max_nb_chars": 1_024,
                    "content": "{{date}}\r\n{{text}}\r\n{{name}}",
                },
                "directory": "zzz",
            }
        )

0.4

08 Dec 22:43
Compare
Choose a tag to compare
0.4

Note, that this release introduces breaking changes!

  • Remove the concept of content generators (and the correspondent content_generator arguments in implemented providers). Instead, allow usage of dynamic fixtures in the provided content argument.
  • Remove temporary files when creating ZIP archives.
  • Various improvements and fixes in docs.

0.3

07 Dec 23:53
Compare
Choose a tag to compare
0.3
  • Add support for BIN, CSV and XLSX files.
  • Better visual representation of generated images and PDFs.

0.2

06 Dec 23:36
Compare
Choose a tag to compare
0.2
  • Added support for ICO, JPEG, PNG, SVG and WEBP files.
  • Documentation improvements.