Skip to main content

You can download it here https://pypi.org/project/polywrapper/

Welcome to the PolyWrapper wiki!

Here is the basics of using poly wrapper

To install polywrapper run the following command

pip install polywrapper

Here is an example of inserting data into a database

connection = polywrapper.PolyClient("node2.lunes.host:27106", "Better_Password", "ExampleDB")

res = connection.insert("Hello", "World")
print(res)

This will return {"Status": "Success"} if it works.`

You can also input sub level JSON and lists

connection.insert({"users": ["David", "Andrew"]})
connection.insert("meta", {"page": "2"})

To get data from certain key

print(res)
to get all data from database do
res = connection.get()

if the key value system is {"key": "value"} it will return value if it is something like {"key": {"sub": "json"}} it will return {"sub": "json"}

To update a keys value.

connection.update("key", "value2") once again this can be json or a string to append data to a list you will need to do res = connection.insert("users", ["John", "Andrew"]) connection.append("users", "Mia")

To remove certain keys.

connection.remove('key')

Release files for polywrapper 0.1.5

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

Source distribution (sdist)

Source distribution for polywrapper 0.1.5
File Size Uploaded
polywrapper-0.1.5.tar.gz 3.4 kB Details

Release files / polywrapper-0.1.5.tar.gz

Download URL polywrapper-0.1.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c32c0fe024e3502b82b89b791f3f50d069ef617037d2199014006742d9e08f0f
BLAKE2b-256 checksum
How to use checksums
95011eb829bbf81e2c180f7e2581f94e8a715c490cd8febc19fc78d93d4a9d64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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