Skip to main content

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

Metadata

Release files for pyflat 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyflat 0.2.1
File Size Uploaded Provenance Actions
pyflat-0.2.1.tar.gz 2.4 kB Without provenance Details for pyflat-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyflat 0.2.1
File Interpreter ABI Platform Actions
pyflat-0.2.1-py3-none-any.whl Python 3 none any Details for pyflat-0.2.1-py3-none-any.whl

Total release size: 4.9 kB

Release files / pyflat-0.2.1.tar.gz

Download URL pyflat-0.2.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d2b53d734de307a9ab7fd5ded753e58738cec74fc9e681803a18353b0b764275
BLAKE2b-256 checksum
How to use checksums
34ce48c25fcbcd9af6855c3f02e126d006587968f8195838a2f40e1d552dfd0d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pyflat-0.2.1-py3-none-any.whl

Download URL pyflat-0.2.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0c556dc2948061ba88787cb7142ab9dbb666069f05de46fc97ad3928d46f9ca
BLAKE2b-256 checksum
How to use checksums
324780eb4baf54b64ddb86431d589cf03ebcb1637b39128ca7d58b3f569cb26f
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pyflat 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page