ez-docs


Nameez-docs JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/fga-eps-mds/2022-2-ez-docs
SummaryA python package to quick doc generation
upload_time2023-02-07 01:39:55
maintainer
docs_urlNone
author Bruno Ribeiro, Bruno Martins, Diógenes Dantas, Igor Penha, Lucas Gobbi e Rafael Nobre
requires_python
licenseMIT
keywords ez_docs ez-docs
VCS
bugtrack_url
requirements mdpdf pandas pytest bumpversion openpyxl lxml
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.


## 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](https://fga-eps-mds.github.io/2022-2-ez-docs/index.html).


## Installation

To install *ez-docs*, open an interactive shell and run:
```bash
$ python3 -m pip install ez-docs
```
Then, to assure the faultless installation, run:
```bash
$ 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, .xlsx, .json) 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>> . You can use images in your markdown but can't use HTML and CSS tags.
       

    ![Template file example](/docs/images/template.png "Template file example")

* database: str - database.(csv, txt, xlsx)
    
    ![Database file example](/docs/images/database.png "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 format of each document.
    - 0 - The doc will remain in .md
    - 1 (def.) - The doc will be converted to .pdf

* zip: int - optional parameter that defines the final format of the set.
    - 0 (def.) - The set will be kept at folder ./output;
    - 1 - The files will be joint in a output.zip;

* constraint: str - optional parameter that sets a constraint for data filtering.
    Exemple: Suppose you have a data set of students' grades, and you would like to generate a certificate for those whose grades are greater or equal than 8. In this case, you could simply type: "... --constraint 'Grade >= 8.0' (assuming you really have a column named "Grade").

With that, you may open an interactive shell and run:
```bash
$ ez-docs <~/template.md> <~/database.csv> <pattern_keys> --flag=0 or 1 --zip=0 or 1
```

![](/docs/images/exampleofuse.gif)

## 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:
```bash
$ ez-docs --about
```

Architecture stuff:
```bash
$ ez-docs --architecture
```

How to use tutorial:
```bash
$ ez-docs --help
```

List of all command line commands:
```bash
$ ez-docs --list
```

## Getting involved
1. Read the [CONTRIBUTING.md](https://github.com/fga-eps-mds/2022-2-ez-docs/blob/main/docs/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](https://www.conventionalcommits.org/en/v1.0.0/): `git commit -m "commit_message"`
5. Send to origin branch: `git push origin <branch_name> / <local>`
6. Create pull request through Github.

## Product Backlog
To get access to the project backlog, click [here](docs/BACKLOG.md).

## Contact us
You may email to [ezdocsteam@gmail.com](mailto:ezdocsteam@gmail.com). We would be happy to answer your questions and set up a meeting with you.

## Open source licensing info

This project is under license. See the [LICENSE](LICENSE) file for details.

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

#### Special thanks to:
Dr. [Carla Rocha Aguiar](https://github.com/RochaCarla), our professor at the University of Brasília.

**_ez-docs Team_**  

*Created by [Bruno Ribeiro](https://github.com/BrunoRiibeiro), [Bruno Martins](https://github.com/gitbmvb), [Diógenes Dantas](https://github.com/diogjunior100), [Igor Penha](https://github.com/igorpenhaa), [Lucas Bergholz](https://github.com/LucasBergholz) and [Rafael Nobre](https://github.com/RafaelN0bre) in 2022*

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fga-eps-mds/2022-2-ez-docs",
    "name": "ez-docs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "ez_docs,ez-docs",
    "author": " Bruno Ribeiro, Bruno Martins, Di\u00f3genes Dantas, Igor Penha, Lucas Gobbi e Rafael Nobre ",
    "author_email": "ezdocsteam@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/86/06/6ff93ff6f7a8f5e08be8ac38a8d159b51e75705e1ba5f102c94a82ddaae6/ez_docs-1.1.0.tar.gz",
    "platform": null,
    "description": "# ez-docs\n\n### What's up everyone!\n\nez-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.\n\nSo, 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.\n\n\n## Prerequisites\n\nBefore starting, make sure you've met the following requirements:\n* You have installed the latest version of `<Python>`.\n* You have a `<Windows / Linux / Mac>` machine.\n* You read the [project GitPage](https://fga-eps-mds.github.io/2022-2-ez-docs/index.html).\n\n\n## Installation\n\nTo install *ez-docs*, open an interactive shell and run:\n```bash\n$ python3 -m pip install ez-docs\n```\nThen, to assure the faultless installation, run:\n```bash\n$ ez-docs --about\n```\nThe terminal ought to print something like this:\n```\n=====About this project=====\n\n\tThis 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.\n    ...\n```\n\n## Using ez-docs\n\nTo start using *ez-docs*, you'll need a markdown template, a database (.csv, .xlsx, .json) and a pattern of keys.\n\n* directory_template: str - template.md\n    \n   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>> . You can use images in your markdown but can't use HTML and CSS tags.\n       \n\n    ![Template file example](/docs/images/template.png \"Template file example\")\n\n* database: str - database.(csv, txt, xlsx)\n    \n    ![Database file example](/docs/images/database.png \"Database file example\")\n\n* file_name_pattern: str - parameter concerning the denominator key of the document name, which must follow the format {key_pattern}.\nFor example, for a template that has the keys \"name\" and \"registration\", the output could be \"name_registration\", generating the following results:\n    - Aaron_3141592653.pdf\n    - Barnardo_2718281828.pdf\n    - Caliban_4815162342.pdf\n\n    Valid separators: registration_name, registration-name, registration:name, registration name.\n\n* flag: int - optional parameter that defines the final format of each document.\n    - 0 - The doc will remain in .md\n    - 1 (def.) - The doc will be converted to .pdf\n\n* zip: int - optional parameter that defines the final format of the set.\n    - 0 (def.) - The set will be kept at folder ./output;\n    - 1 - The files will be joint in a output.zip;\n\n* constraint: str - optional parameter that sets a constraint for data filtering.\n    Exemple: Suppose you have a data set of students' grades, and you would like to generate a certificate for those whose grades are greater or equal than 8. In this case, you could simply type: \"... --constraint 'Grade >= 8.0' (assuming you really have a column named \"Grade\").\n\nWith that, you may open an interactive shell and run:\n```bash\n$ ez-docs <~/template.md> <~/database.csv> <pattern_keys> --flag=0 or 1 --zip=0 or 1\n```\n\n![](/docs/images/exampleofuse.gif)\n\n## Special functionalities\n\nez-docs has some in-line functionalities. To use it, type one of the commands below in your terminal:\n\nProject overview, contributors, etc:\n```bash\n$ ez-docs --about\n```\n\nArchitecture stuff:\n```bash\n$ ez-docs --architecture\n```\n\nHow to use tutorial:\n```bash\n$ ez-docs --help\n```\n\nList of all command line commands:\n```bash\n$ ez-docs --list\n```\n\n## Getting involved\n1. Read the [CONTRIBUTING.md](https://github.com/fga-eps-mds/2022-2-ez-docs/blob/main/docs/CONTRIBUTING.md) guide.\n2. Fork this repository.\n3. Create a branch on your local machine: `git checkout -b <branch_name>`.\n4. Make your changes and confirm them following the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/): `git commit -m \"commit_message\"`\n5. Send to origin branch: `git push origin <branch_name> / <local>`\n6. Create pull request through Github.\n\n## Product Backlog\nTo get access to the project backlog, click [here](docs/BACKLOG.md).\n\n## Contact us\nYou may email to [ezdocsteam@gmail.com](mailto:ezdocsteam@gmail.com). We would be happy to answer your questions and set up a meeting with you.\n\n## Open source licensing info\n\nThis project is under license. See the [LICENSE](LICENSE) file for details.\n\n---\n## So, take it easy, and use ez-docs to make your docs!\n\n#### Special thanks to:\nDr. [Carla Rocha Aguiar](https://github.com/RochaCarla), our professor at the University of Bras\u00edlia.\n\n**_ez-docs Team_**  \n\n*Created by [Bruno Ribeiro](https://github.com/BrunoRiibeiro), [Bruno Martins](https://github.com/gitbmvb), [Di\u00f3genes Dantas](https://github.com/diogjunior100), [Igor Penha](https://github.com/igorpenhaa), [Lucas Bergholz](https://github.com/LucasBergholz) and [Rafael Nobre](https://github.com/RafaelN0bre) in 2022*\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A python package to quick doc generation",
    "version": "1.1.0",
    "split_keywords": [
        "ez_docs",
        "ez-docs"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cef4577c7c12dfe7edd948697323119234ff929c95a080fa79eda0fda6202125",
                "md5": "5e343dcca1ce922f56047b734355ba97",
                "sha256": "073f07f4c57f74f7545bcdf9e6f19dd751c3f5af3a7722cb90194351e6331d62"
            },
            "downloads": -1,
            "filename": "ez_docs-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5e343dcca1ce922f56047b734355ba97",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 13326,
            "upload_time": "2023-02-07T01:39:53",
            "upload_time_iso_8601": "2023-02-07T01:39:53.995918Z",
            "url": "https://files.pythonhosted.org/packages/ce/f4/577c7c12dfe7edd948697323119234ff929c95a080fa79eda0fda6202125/ez_docs-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86066ff93ff6f7a8f5e08be8ac38a8d159b51e75705e1ba5f102c94a82ddaae6",
                "md5": "989964b2dfa2e851aab6a01ea057f076",
                "sha256": "cce129e74923fe91cf938bd58f83f0089f68d08232801e80a18c71c8fedd8821"
            },
            "downloads": -1,
            "filename": "ez_docs-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "989964b2dfa2e851aab6a01ea057f076",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13660,
            "upload_time": "2023-02-07T01:39:55",
            "upload_time_iso_8601": "2023-02-07T01:39:55.782661Z",
            "url": "https://files.pythonhosted.org/packages/86/06/6ff93ff6f7a8f5e08be8ac38a8d159b51e75705e1ba5f102c94a82ddaae6/ez_docs-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-07 01:39:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "fga-eps-mds",
    "github_project": "2022-2-ez-docs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "mdpdf",
            "specs": [
                [
                    "==",
                    "0.0.18"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "1.5.2"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    "==",
                    "7.2.0"
                ]
            ]
        },
        {
            "name": "bumpversion",
            "specs": [
                [
                    "==",
                    "0.6.0"
                ]
            ]
        },
        {
            "name": "openpyxl",
            "specs": [
                [
                    "==",
                    "3.1.0"
                ]
            ]
        },
        {
            "name": "lxml",
            "specs": [
                [
                    "==",
                    "4.9.2"
                ]
            ]
        }
    ],
    "lcname": "ez-docs"
}
        
Elapsed time: 0.03889s