Faker-file

Latest version: v0.17.12

Safety actively analyzes 666166 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 13

0.12.1

------
2023-04-19

- Added CLI options.

0.12

----
2023-02-24

*Note, that this release introduces breaking changes!*

- Make it easy to use a different PDF library with ``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``.
Since ``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``. If you have passed the
``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.

0.11.5

------
2023-02-20

- Fixes in typing of ``CsvFileProvider``. ``Tuple[str, str]``
becomes ``Tuple[str, ...]``.

0.11.4

------
2023-02-16

.. note::

Release dedicated to my dear valentine - Anahit.

- Added ``filename`` to ``data`` property of values returned by
``Mp3FileProvider`` provider (``StringValue``, ``BytesValue``).

0.11.3

------
2023-02-10

- Moved several interface classes from one location to another. If you haven't
implemented custom generators, this won't affect you. If you did, make sure
to update your imports:

- ``BaseTextAugmenter`` has been moved from
``faker_file.providers.augment_file_from_dir.augmenters.base`` to
``faker_file.providers.base.text_augmenter``.
- ``BaseTextExtractor`` has been moved from
``faker_file.providers.augment_file_from_dir.extractors.base`` to
``faker_file.providers.base.text_extractor``.
- ``BaseMp3Generator`` has been moved from
``faker_file.providers.mp3_file.generators.base`` to
``faker_file.providers.base.mp3_generator``.

0.11.2

------
2023-02-07

- Add ``filename`` to ``data`` property of values returned by providers
(``StringValue``, ``BytesValue``).

Page 7 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.