Python library that provides interface for table formats such as csv, xlsx
Project description
tay
Python library that provides interface for table formats such as csv, xlsx.
Quick Start
pip install tay
from dataclasses import dataclass
import tay
@dataclass
class Entity:
id: int
name: str
entity = Entity(0, 'sword')
with tay.CSV('entities.csv', 'w') as sheet:
sheet.write_header(Entity)
sheet.write_record(entity)
import tay
with tay.CSV('entities.csv', 'r') as sheet:
records = sheet.read(Entity)
Interfaces
| Interface name | File type |
|---|---|
CSV |
.csv |
Excel |
.xlsx |
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
tay-0.1.0.tar.gz
(3.2 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
tay-0.1.0-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file tay-0.1.0.tar.gz.
File metadata
- Download URL: tay-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdb3142fa3a65cfb9620bbd1f5a1a74f009e79c88b3f2c62cd8098096cb6d009
|
|
| MD5 |
6fb47284d3652a300eb0d5c867824b73
|
|
| BLAKE2b-256 |
06d8fe4cef62521f9489817c767ce0c0957fcafd7daf98b6aee6117305888c64
|
File details
Details for the file tay-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tay-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f48cabf2b2c9cdeaa257ca3469db91adc813fc27390ee9116369e30f41834146
|
|
| MD5 |
88ad569284e916a8dbaa80ee2c5426f0
|
|
| BLAKE2b-256 |
aa7e27a3fb5fadab16ad5f8034c3709b46add39f6bc6e5841021b0ebd5df3cea
|