pyflat
The pyflat package aims to provide easy serialization of Python objects into positional fixed-width strings. These kind of structures are useful when integrating with old system which depends on positional flat files.
Quick Start
Instalation
To install Pyflat, use pip or pipenv:
$ pip install pyflat
Example Usage
from pyflat import Base, Field, RIGHT
class User(Base):
name = Field(size=20)
income = Field(size=10, sep='0', justify=RIGHT)
user = User()
user.name = 'John Doe'
user.income = 4500.35
user.dump() # => John Doe 0000450035
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyflat-0.2.1.tar.gz
(2.4 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 pyflat-0.2.1.tar.gz.
File metadata
- Download URL: pyflat-0.2.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2b53d734de307a9ab7fd5ded753e58738cec74fc9e681803a18353b0b764275
|
|
| MD5 |
b6288e746fdf6ae03d2b77625a75e5fe
|
|
| BLAKE2b-256 |
34ce48c25fcbcd9af6855c3f02e126d006587968f8195838a2f40e1d552dfd0d
|
File details
Details for the file pyflat-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyflat-0.2.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0c556dc2948061ba88787cb7142ab9dbb666069f05de46fc97ad3928d46f9ca
|
|
| MD5 |
5fa7d019daf0f24b8efae13179369b93
|
|
| BLAKE2b-256 |
324780eb4baf54b64ddb86431d589cf03ebcb1637b39128ca7d58b3f569cb26f
|