Pacote utilizado para criação de tabelas no python
Project description
Pytabela
Uma biblioteca com o intuito de gerar tabelas automaticamente.
Instalação
Instalação via pip:
python -m pip install -U PyTabela
Como Usar
Importação
from pyTabela import pyTabela
x = pyTabela.PyTabela()
Adição dos campos
x.addCampos(["id", "nome", "sobrenome"])
Adição das linhas
x.addLinha([1, "Pablo", "Silva"])
Voce pode adicionar uma linha a qualquer momento, mas é necessario adicionar o nome dos campos primeiramente com addCampos.
x = pyTabela.PyTabela()
x.addCampos(["id", "nome", "sobrenome"])
x.addLinha([1, "Pablo", "Silva"])
x.addLinha([2, "Vitória", "Karolina"])
x.addLinha([3, "Fulano", "de Tal"])
print(x)
Exemplo de Mostragem
+----+---------+-----------+
| id | nome | sobrenome |
+----+---------+-----------+
| 1 | Pablo | Silva |
| 2 | Vitória | Karolina |
| 3 | Fulano | de Tal |
+----+---------+-----------+
Exportar para CSV
a.saveTabela("Nome_Do_Arquivo.csv")
Importar de um arquivo CSV
a.loadTabela("Nome_Do_Arquivo.csv")
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
PyTabela-0.0.1.3.tar.gz
(3.9 kB
view details)
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 PyTabela-0.0.1.3.tar.gz.
File metadata
- Download URL: PyTabela-0.0.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
532219fbe78f849990e5716233d0328b647fb984f9b83e99e76790d949a2a5e2
|
|
| MD5 |
f19d5e17f938d773afbb6b59930d96f1
|
|
| BLAKE2b-256 |
f49935d3316afd0ceed1fab14bef50e9f3b59d8f8a3d45f5cf8d01c41914be84
|
File details
Details for the file PyTabela-0.0.1.3-py3-none-any.whl.
File metadata
- Download URL: PyTabela-0.0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ca13dca0058ec225c3c86f52d13faa71d8449d1a569c38aea3966ed24852edc
|
|
| MD5 |
0d8bef6c562d2716ba02b07c43e12741
|
|
| BLAKE2b-256 |
23f1d1f6502e22edcc1c2a1d4462e0c324c13625b05d7712bb48afdc4352cd95
|