Skip to content

Releases: barseghyanartur/faker-file

0.17.4

18 Aug 07:42
11a15ea
Compare
Choose a tag to compare
    Release is dedicated to the victims and de-facto hostages of
    the `Blockade of the Republic of Artsakh`_. Have you ever heard
    of `Armenian genocide`_? It's happening again. For more than 8 months,
    Azerbaijan has launched an illegal blockade of the Republic of Artsakh,
    including critical civilian infrastructure such as gas, electricity and
    roads connecting Armenia and Artaskh. Shortages of essential goods –
    including electricity, fuel, and water reserves – are widespread and
    emergency reserves are being rationed. The blockade has resulted in
    significant medical and food shortages in Artsakh, leading to increased
    health complications, as reported by Artsakh Healthcare ministry.

     - Deaths due to cardiovascular diseases doubled in the first seven
       months of the year, with a particular surge in July-August.
     - Deaths from malignant tumors rose by 15.9% over the same period due
       to lack of medications and medical aid.
     - New cases of stroke and heart attacks increased by 26% and 9.7%
       respectively.
     - Newly diagnosed cases of malignant tumors rose by 24.3%.
     - Around 90% of monitored pregnant women developed anemia from poor
       nutrition and medication shortages.
     - While overall abortion numbers remained stable, medically indicated
       abortions quadrupled in July due to factors like stress and
       inadequate nutrition.
     - Reports of fainting surged by 91% in July-August.
     - Emergency calls for high blood pressure saw a 5.6-fold increase in
       July-August.

    The dire health outcomes are attributed to the blockade's impact,
    including medication shortages, stress, disrupted medical procedures,
    and restricted healthcare access. The Artsakh Health Ministry warns of
    further deterioration if the blockade continues, emphasizing the systemic
    challenges in healthcare delivery due to the blockade.
  • Added AugmentRandomImageFromDirProvider
    and AugmentImageFromPathProvider providers for basic image augmentation.
  • Added storage to metadata for all providers for easy clean-up of files.
  • Added unlink method to all storages for easy clean-up of files.
  • Added FileRegistry to keep track of all files created and introduce
    functionality for cleaning up the files.
  • Stop testing against Python 3.7.

0.17.3

02 Aug 23:11
Compare
Choose a tag to compare
    In memory of Sinead O'Connor.
  • Allow to pass image argument (bytes) to the contrib add_picture functions.
  • Documentation improvements.

0.17.2

25 Jul 22:18
250752c
Compare
Choose a tag to compare
  • Added JSON file provider.

0.17.1

20 Jul 22:46
b710a52
Compare
Choose a tag to compare
  • Added WeasyPrintImageGenerator image generator class based
    on WeasyPrint and pdf2image packages.
  • Added BMP, TIFF and GIF file providers (both text-to-image
    and graphic ones). Note, that above-mentioned text-to-image providers
    are using WeasyPrintImageGenerator as a default image generator class,
    since ImagekitImageGenerator class isn't capable of supporting the
    above mentioned file formats.
  • Added more helper functions for DynamicTemplate use for ODT, PDF and
    DOCX file providers to support h1, h2, h3, h4, h5 and h6 headings.

0.17

11 Jul 23:14
Compare
Choose a tag to compare

Release is dedicated to the victims and de-facto hostages of the Blockade of the Republic of Artsakh.
Have you ever heard of the Armenian genocide? It's happening again and the world silently watches.

  • Introducing graphic image providers. Prior to this release, images have
    been created using text-to-image solutions. Sometimes it's just handy to
    have a graphic image. Therefore, a number of graphic image file providers
    have been created (including inner functions support). The following graphic
    file providers have been added: GraphicIcoFileProvider,
    GraphicJpegFileProvider, GraphicPdfFileProvider,
    GraphicPngFileProvider and GraphicWebpFileProvider to support
    creation of graphic ICO, JPEG, PDF, PNG and WEBP files.
  • The previously mentioned text-to-image rendering has been delegated to
    image generators. Default generator is still based on the imgkit, but
    the change makes it possible to use custom generators.

0.16.4

01 Jul 00:00
Compare
Choose a tag to compare
  • Documentation improvements. Added a dedicated section for creating ODT files.
  • Adding add_paragraph and add_page_break to ODT contrib module.

0.16.3

30 Jun 00:07
Compare
Choose a tag to compare
  • Documentation improvements. Added a dedicated section for creating PDF files.
    Added a dedicated section for creating DOCX files.
  • Adding add_paragraph and add_page_break to DOCX contrib module.

0.16.2

27 Jun 22:38
Compare
Choose a tag to compare
  • Moving some of the snippets from tests to a contrib module to improve
    usability. The snippets are generic enough to be used in tests and if you
    don't like the way they work, you could always make a new one. New snippets
    to insert page breaks and paragraphs into PDF (using both pdfkit
    and reportlab generators) have been added.

0.16.1

23 Jun 00:04
Compare
Choose a tag to compare
  • Better error handling in CLI.

0.16

22 Jun 00:12
Compare
Choose a tag to compare
    This release is dedicated to my beloved son - Tigran, who turned 11!
    This release introduces minor backwards incompatible changes.
  • Minor improvements in PDF generation. If you have been using
    DynamicTemplate to generate complex PDFs, you are likely affected
    by the change. Make sure to at least add an additional argument
    named generator to the functions passed to the DynamicTemplate
    class. See the example below:

    Old:

    def add_pb(provider, story, data, counter, **kwargs):

    New:

    def add_pb(provider, generator, story, data, counter, **kwargs):

  • Add code examples of how to generate a PDF with 100 pages with
    both PdfkitPdfGenerator and ReportlabPdfGenerator PDF generator
    classes.

  • Add version CLI command.

  • Add generate-completion and version commands to the CLI
    auto-completion.