Skip to main content

pyntree is a python package which allows you to easily and syntactically save your data. Not only that, it also lets you save in multiple formats, and even serialize and compress data by merely changing a few characters.

Project description

About

pyntree is a python package which allows you to easily and syntactically save your data. Not only that, it also lets you save in multiple formats, and even serialize and compress data by merely changing a few characters.

Installing

pip install pyntree

Example usage

from pyntree import Node
db = Node("your_new_db.pyn")
db.hello = "world"
db.hello()
# Output: "world"
db.save()

Fun example

from datetime import datetime as dt
from pyntree import Node
data = {'right_now': dt.now()}  # Some sample data
Node(data).save('file.pyn')  # 1-liner to save your data to a file!

Status

pyntree is currently in beta while I battle-test it and work out any bugs not found by the unit tests.

Under normal usage pyntree should perform as expected, but I cannot guaruntee it is production-ready.

You can help by installing and testing the latest release, and reporting any bugs.

You can also star/watch this repository to be notified when I make changes and release updates.

Docs

The documentation is available at https://pen.jvadair.com/books/pyntree

Project board

To view, visit https://board.jvadair.com and use credentials:

  • Username: public
  • Password: public

Contributing

If you would like to contribute, feel free to fork the repository and start a pull request. I will manually review/test them before implementing. If you have any questions regarding the project or how to contribute, you're welcome to contact me.

Copyright © 2023 James Adair

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyntree-0.2.0.tar.gz (17.4 kB view hashes)

Uploaded Source

Built Distribution

pyntree-0.2.0-py3-none-any.whl (14.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page