Skip to main content

antigrav is basically JSON but supports complex numbers

Project description

a modified json because i got bored

WOW IT FINALLY WORKS YAYAYYAYAYYAYYAYYAYYA IM SO HAPPY RIGHT NOW

>>> import antigrav
>>> from cmath import sqrt
>>> antigrav.dump({"int": 2234, "float": 324.235, "str": "qoofy string", "list": [1, 2, "hello moon", [3, 4, [[5]]]], "tuple": ("amigger", "and", "his", "family"), "dict": {1: 2, 3: 4, 5: {6: 7}}, "complex": sqrt(-1)}, open("test.antigrav", "w"), sort_keys=True, indent=4)
>>> open("test.antigrav").read()
{
"complex": 0.0+1.0i, # <- complex numbers do work
"dict": {
"1": 2,
"3": 4,
"5": {
"6": 7
}
},
"float": 324.235,
"int": 2234,
"list": [
1,
2,
"hello moon",
[
3,
4,
[
[
5
]
]
]
],
"str": "qoofy string",
"tuple": [
"amigger",
"and",
"his",
"family"
]
}

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

antigrav-1.1.1.1.1.tar.gz (14.1 kB view details)

Uploaded Source

File details

Details for the file antigrav-1.1.1.1.1.tar.gz.

File metadata

  • Download URL: antigrav-1.1.1.1.1.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for antigrav-1.1.1.1.1.tar.gz
Algorithm Hash digest
SHA256 47ba813e227a4e7f6ca160a4238324ecb7d4c22084d71262a35d5c5cd486e2b0
MD5 d28445e4378aecb3e60325329ef9d57c
BLAKE2b-256 1d25b514dd3f410ad813f178827f42f1d1d0908da86dcf852971fa93063eef51

See more details on using hashes here.

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