Pycargo is a utility to work with loading and exporting data from excel
Project description
Pycargo: Excel loading and exporting helper
.. image:: https://badgen.net/pypi/v/pycargo :target: https://pypi.org/project/pycargo :alt: Latest version
.. image:: https://badgen.net/badge/code%20style/black/000 :target: https://github.com/ambv/black :alt: code style: black
pycargo is a simple to use helper library for exporting and loading data from excel. Its a common requirement in web applications for bulk loading of data. Pycargo hides all the working and gives you easy to use methods for easy exporting of templates and loading data.
.. code-block:: python
from pycargo import fields
from pycargo.spreadsheet import SpreadSheet
class CustomerSpreadSheet(SpreadSheet):
name = fields.StringField(comment="Customer Name")
code = fields.IntegerField(required=True, data_key="Code")
created_on = fields.DateTimeField()
cs = CustomerSpreadSheet()
# Exporting templates
cs.export_template("customer_template.xlsx", only=["name", "code"])
# Bulk loading
dataset = cs.load("customer_template.xlsx")
So with pycargo you can:
- Export template for loading data
- Load data from the templates
- Validate loaded data.
Get It Now
::
$ pip install -U pycargo
Requirements
- Python >= 3.6
License
MIT licensed. See the bundled LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycargo-2.1.0.tar.gz.
File metadata
- Download URL: pycargo-2.1.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4894b145346b8b094caf04614ed5c13e6b68facd9ada8fd25efd38adb48af6de
|
|
| MD5 |
82632b429330ecf3cded371320b3c856
|
|
| BLAKE2b-256 |
0f1acc95f2a7afbcd13340413cab801032fd2655d34b710f161c5ff5685f1feb
|
File details
Details for the file pycargo-2.1.0-py3-none-any.whl.
File metadata
- Download URL: pycargo-2.1.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17ecc76f3d8bffe2a4052e7dc5bbd1c4a64a307e30d96d9be1c9a4614c875e55
|
|
| MD5 |
32824138f8c534e28accd86a0c261c3c
|
|
| BLAKE2b-256 |
e08cc00ae3b8068685570e1214fa53b5346447e287552cdc3a7036a8e701f962
|