Skip to main content

A universal OAuth2.0 client written in Zig concurrency-ready

Project description

Gesttalt Python Bindings

A universal OAuth2.0 client written in Zig concurrency-ready.

Install

pip install gesttalt

Usage

from gesttalt import (
    create_snippet, list_snippets, read_snippet, update_snippet, delete_snippet,
    create_post, list_posts, read_post, update_post, delete_post,
    create_note, list_notes, read_note, update_note, delete_note,
)

project_dir = "."
timestamp = 1735148400

path = create_snippet(project_dir, timestamp, "Example snippet", "const x = 1;", "example.zig")
print(path)

snippet = read_snippet(project_dir, timestamp)
print(snippet)

update_snippet(project_dir, timestamp, description="Updated description")

delete_snippet(project_dir, timestamp)

posts = list_posts(project_dir)
post = read_post(project_dir, "hello-world")
create_post(project_dir, "hello-world", "Hello", "My first post", tags=["zig", "oauth2"])
update_post(project_dir, "hello-world", title="Updated title")
delete_post(project_dir, "hello-world")

notes = list_notes(project_dir)
note = read_note(project_dir, "1735148400")
create_note(project_dir, timestamp, body="Quick update")
update_note(project_dir, "1735148400", body="Edited")
delete_note(project_dir, "1735148400")

Development

# From project root
zig build -Doptimize=ReleaseFast

cd bindings/python
pip install -e .
pytest

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gesttalt-0.7.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (583.7 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

gesttalt-0.7.8-py3-none-macosx_11_0_arm64.whl (92.2 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

gesttalt-0.7.8-py3-none-macosx_10_9_x86_64.whl (92.3 kB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file gesttalt-0.7.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for gesttalt-0.7.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e8fdaa00647c09a4a7fa7e22da466a4783276c4b3b961f223f8442294690cf3b
MD5 f545ed4ca30b6607b9381aa1c6ca6e9b
BLAKE2b-256 13cd9304ce535987036ec9636bf8f1f7016eb4c029c450ebe015af4367ff9268

See more details on using hashes here.

Provenance

The following attestation bundles were made for gesttalt-0.7.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on pepicrft/gesttalt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gesttalt-0.7.8-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gesttalt-0.7.8-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c46165de72e0bc742c342cad1536ef173776cc49edb7ac3c89b3ca362a4e902
MD5 2d611cca16748f07e13e3239b28faf80
BLAKE2b-256 3478aa2c91c91381ac819e5cfbc03ec0d8f8dd299b591d729bc0fe8977a67350

See more details on using hashes here.

Provenance

The following attestation bundles were made for gesttalt-0.7.8-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on pepicrft/gesttalt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gesttalt-0.7.8-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gesttalt-0.7.8-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 877e8e64aade189efa19739b8995184ce1addcb9f3b97c4de219439ec29369ee
MD5 c312bf2c91c5725aba7a63ce6bd6ba48
BLAKE2b-256 f283be26a9ea24e7a97672bf664b7bbeec7c0faa3fb25b02d0f62ad240ce23e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gesttalt-0.7.8-py3-none-macosx_10_9_x86_64.whl:

Publisher: release.yml on pepicrft/gesttalt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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