Skip to main content

Um pacote python de geração de documentos automáticos

Project description

ez-docs

What's up everyone!

ez-docs is a MVP (minimum viable product) Python project that were build for an SDM (Software Development Methods) class, with the aim of learn the goals of different approaches for creating software through agile practices.

So, we contribute to the Open Source community with ez-docs, which helps users to issue a wide range of certificates, declarations, resumes, receipts, slips, or whatever else the imagination allows through a database and a template in markdown format.

Realised features

  • Generate doc's in .pdf #20
  • e-mail generated doc's #24
  • Package pip installation #30
  • Argparse commands #39
  • Run package via CLI #43

Realised doc's

Bugs

  • Semicolon separator on .csv files not working.
  • Format .xlsx
  • key_pattern optionality.
  • flag=1/flag=2 always generating .md files.

Prerequisites

Before starting, make sure you've met the following requirements:

  • You have installed the latest version of <Python>.
  • You have a <Windows / Linux / Mac> machine.
  • You read the project GitPage.

Installation

To install ez-docs, open an interactive shell and run:

$ python3 -m pip install ez-docs

Then, to assure the faultless installation, run:

$ ez-docs --about

The terminal ought to print something like this:

=====About this project=====

	This project was developed by Software Engineering students at the University of Brasilia - Campus Gama (UnB-FGA) - during the 2022.2 semester, in the course of Software Development Methods (SDM), under the guidance of prof. Dr. Carla Rocha Aguiar.
    ...

Using ez-docs

To start using ez-docs, you'll need a markdown template, a database (.csv, .txt, .xls) and a pattern of keys.

  • directory_template: str - template.md

    In your markdown template you must to indicate the fields that you want to replace for the values in database, with the following pattern of keys: <<SAME_DATABASE_COLUMN_NAME>>

    Template file example

  • database: str - database.(csv, txt, xls)

    Database file example

  • file_name_pattern: str - parameter concerning the denominator key of the document name, which must follow the format {key_pattern}. For example, for a template that has the keys "name" and "registration", the output could be "name_registration", generating the following results:

    • Aaron_3141592653.pdf
    • Barnardo_2718281828.pdf
    • Caliban_4815162342.pdf

    Valid separators: registration_name, registration-name, registration:name, registration name.

  • flag: int - optional parameter that defines the final output format.

    • 1 (def.) - The doc will be converted to .pdf
    • 2 - The doc will remain in .md

With that, you may open an interactive shell and run:

$ ez-docs <~/template.md> <~/database.csv> <pattern_keys> --flag=1 or 2

Special functionalities

ez-docs has some in-line functionalities. To use it, type one of the commands below in your terminal:

Project overview, contributors, etc:

$ ez-docs --about

Architecture stuff:

$ ez-docs --architecture

How to use tutorial:

$ ez-docs --help

List of all command line commands:

$ ez-docs --list

Getting involved

  1. Read the CONTRIBUTING.md guide.
  2. Fork this repository.
  3. Create a branch on your local machine: git checkout -b <branch_name>.
  4. Make your changes and confirm them following the Conventional Commits: git commit -m "commit_message"
  5. Send to origin branch: git push origin <branch_name> / <local>
  6. Create pull request through Github.

Open source licensing info

This project is under license. See the LICENSE file for details.


So, take it easy, and use ez-docs to make your docs!

Special thanks to:

Dr. Carla Rocha Aguiar, our professor at the University of Brasília.

ez-docs Team

Created by Bruno Ribeiro, Bruno Martins, Diógenes Dantas, Igor Penha, Lucas Bergholz and Rafael Nobre in 2022

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ez_docs-1.0.1.tar.gz (12.4 kB view hashes)

Uploaded Source

Built Distribution

ez_docs-1.0.1-py3-none-any.whl (12.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page