Skip to main content

PYSON

Maintained by: OmegaGodzilla66, ComputingSquid, CoolSchnoodle, and nmd102

GitHub Repo stars GitHub Actions Workflow Status GitHub commit activity GitHub last commit GitHub Release GitHub commits since latest release PyPI - Downloads

Overview

The purpose of this project is to provide a python-based alternative to JSON. This is a (almost) fully functional JSON-inspired data management system!

How to Use

This is a pip package, so to use this in python you can just pip install pyson-data. From there, you can just import pyson_data as pyson. Support for other languages may come soon.

Quickstart

Refer to the project wiki here

Documentation

Documentation has also been moved to the project wiki here to decrease clutter in the README.

Supported Types

There are 4 supported types: int, float, str, and list

  • An int is a whole number
  • A str is some text
  • A list is a list of values, which currently have to all be strings. List items are seperated by the (*) seperator. Currently there is no escaping support. I don't really know why you would use (*) normally in a list.
  • A float is a decimal number, that can be any value representable by a 64-bit floating point number.
    More supported types may be added at some point in the future.

Changelog

  • v0.2.0: Full rewrite, code is now much more organized. Not all convenience features are back yet but it is overall much more usable
  • v0.1.3: Added getDict function
  • v0.1.2: Refactored pyson.py
  • v0.1.1: Added writeMultiple function, various bug fixes
  • v0.1.0-alpha: package & release deployed to pypi, merged code to main, and resolved all merge conflicts! truly a cause for celebration 🎉
  • v0.0.9: coolSchnoodle and nmd102 made code fixes and README fixes
  • v0.0.8: Added updateData function
  • v0.0.7: Fixed errors, refactored bad code
  • v0.0.6: Added floats
  • v0.0.5: Updated naming system, ported to github!
  • v0.0.4: Added a function that checks if a file is compatible with .pyson file format. Fixed a bug in the write. Other general bug fixes.
  • v0.0.3: Added a write function! This is now (technically) fully functional!
  • v0.0.2: Added a read function for the whole file. Returns a list of all contents.
  • v0.0.1: Initial launch! Basic reading features for a .cnf (renamed almost immediately to pyson) file. Current compatible types are string, int, and list.

Release files for pyson-data 0.2.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 pyson-data 0.2.0
File Size Uploaded
pyson_data-0.2.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyson-data 0.2.0
File Interpreter ABI Platform
pyson_data-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / pyson_data-0.2.0.tar.gz

Download URL pyson_data-0.2.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
601efc94ac18145469038b0ad8b18cf3545f33ead16475de1781b5ec95ddea29
BLAKE2b-256 checksum
How to use checksums
6d44a2950ed262dfd0c0168ccd0bcde40319f3b3b98aec95a84ac338d5bd5801
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / pyson_data-0.2.0-py3-none-any.whl

Download URL pyson_data-0.2.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
220ac03b2acfc688a496e703f877fc50dd1267a5713b79fbc841249b14f392cf
BLAKE2b-256 checksum
How to use checksums
153b8f88d26202f076e04841bb698da160447f926eb157c853a0e3c2cf0c68c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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