Skip to main content

tinypy

version python
version version version version

Tinypy is a collection of small Python functions and classes which make common patterns shorter and faster. All of these can be done by it:

  • convert JSON files to CSV files
  • convert CSV files to JSON files

Installation

pip install tinypy

Usage

Script

You can also convert the JSON file to a CSV file by passing the "src "and "dest" directories to the function json2csv(src, dest)

import tinypy as tp

_tp = tp.Tinypy()
_tp.json2csv(src="sample.json", dest="new-sample.csv")

This will convert the JSON file located at sample.json to a CSV file located at new-sample.csv.

Command Line Interface

Tinypy also provides a command line interface for converting JSON files to CSV files.

tinypy -s sample.json -d new-sample.csv json2csv

This command will convert the JSON file located at sample.json to a CSV file located at new-sample.csv.

Advanced Usage

To get more information, use -h or --help in Command Line Interface.

> tinypy -h

usage: tinypy [-h] [-v] -s import.json -d export.csv -a

Tinypy is a collection of small Python functions and classes which make common patterns shorter and faster.

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -s import.json, --src import.json
                        The path to the JSON file to convert
  -d export.csv, --dest export.csv
                        The path to the CSV file to create
  -a , --action         json2csv, csv2json

Documentation is available at the GitHub page: https://github.com/arashyeganeh/tinypy

Options

action

Action name Description Docs
json2csv convert JSON files to CSV files Read
csv2json convert CSV files to JSON files Read

Requirements

  • Python 3

License

This library is released under the MIT License.

Contributing

The Tinypy project welcomes contributions.

Please submit a pull request or an issue on GitHub if you have any improvements to suggest.

Support

If you have any issues or questions, please feel free to reach out to us on the GitHub.

References

Metadata

Release files for tinypy 0.2.2

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

Source distribution (sdist)

Source distribution for tinypy 0.2.2
File Size Uploaded Provenance Actions
tinypy-0.2.2.tar.gz 5.0 kB Without provenance Details for tinypy-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 10.9 kB

Release files / tinypy-0.2.2.tar.gz

Download URL tinypy-0.2.2.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
324b933b9282906d519ab34eb0a6700a910ddad0e407aed141b5e34ea5e8fdaf
BLAKE2b-256 checksum
How to use checksums
1d4e0b664ee5d88f8d09b30d45d35d4261dae69c474fe09af0e986508bad9202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / tinypy-0.2.2-py3-none-any.whl

Download URL tinypy-0.2.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fec228194528b6683898d2278207d507ad2c540e37bedc66571a5d97af9f483
BLAKE2b-256 checksum
How to use checksums
09d22a35a5315944e947f47fa8cb90f6774d4e3262060592355b0d178653dccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for tinypy 0.2.2

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.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

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