Skip to main content

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()

1-liner for saving existing data

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!

Features

pyntree is capable of handling the following files, functions, and formats:

  • Dictionaries in plain text
  • Pickled files/serialization
  • JSON & YAML files
  • Encryption
  • Backwards compatibility with files saved by pyndb (except encrypted files)
  • Compression in many popular formats
  • Autosaving & saving on close (when garbage collected)
  • ...and more!

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

Metadata

Release files for pyntree 1.3.0

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

Source distribution (sdist)

Source distribution for pyntree 1.3.0
File Size Uploaded Provenance Actions
pyntree-1.3.0.tar.gz 20.0 kB Without provenance Details for pyntree-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 36.4 kB

Release files / pyntree-1.3.0.tar.gz

Download URL pyntree-1.3.0.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5c6d3a11a01a644dd53113177bae0e2ded28b5af1633313316e069a652f47175
BLAKE2b-256 checksum
How to use checksums
5c5644d0054af0cc9945b838eb7462358d5feba4ac7b9fece05b69cfba9261cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / pyntree-1.3.0-py3-none-any.whl

Download URL pyntree-1.3.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9bf1b82fa2d4f34ca7279b8481cb73923440307f23c6194adc6bf706b1a7df3
BLAKE2b-256 checksum
How to use checksums
c6ed534e2a14c11e2adc4b1138680722c1c2b42f98fff30e8515333815c3eb17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for pyntree 1.3.0

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