This release is a pre-release and may not be stable for production use.
Antfly Python SDK
Python SDK for Antfly - a distributed key-value store and search engine.
For the nightly version, visit the TestPyPI page.
Installation
pip install antfly-sdk
Quick Start
from antfly import AntflyClient
# Initialize client
client = AntflyClient(
base_url="http://localhost:8080",
username="admin",
password="password"
)
# Create a table
client.create_table(
name="users",
num_shards=4,
schema={
"key": "user_id",
"document_types": {
"user": {
"fields": {
"name": {"type": "string"},
"email": {"type": "keyword"},
"age": {"type": "int"},
"created_at": {"type": "time"}
}
}
}
}
)
# Insert data
client.batch(
table="users",
inserts={
"user:1": {
"name": "John Doe",
"email": "john@example.com",
"age": 30
},
"user:2": {
"name": "Jane Smith",
"email": "jane@example.com",
"age": 25
}
}
)
# Query data
results = client.query(
table="users",
full_text_search={"query": "John"},
limit=10
)
# Get specific record
user = client.get(table="users", key="user:1")
Features
- Simple API: Intuitive interface for all Antfly operations
- Type Safety: Full type hints for better IDE support
- Authentication: Built-in support for basic authentication
- Error Handling: Comprehensive error handling with custom exceptions
- Auto-generated Client: Based on OpenAPI specification for accuracy
Development
Setup
- Clone the repository
- Install development dependencies:
uv sync
Generate Client
The SDK uses an auto-generated client based on the Antfly OpenAPI specification:
make generate
Run Tests
make test
Build Package
make build
Documentation
make docs will generate the documentation in the docs/ folder.
Full documentation is available at https://antfly-sdk-python.readthedocs.io
License
Apache License 2.0
Warning
Metadata
Release files for antfly-sdk 0.0.2.dev2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| antfly_sdk-0.0.2.dev2.tar.gz | 315.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| antfly_sdk-0.0.2.dev2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 975.2 kB
Release files / antfly_sdk-0.0.2.dev2.tar.gz
| Download URL | antfly_sdk-0.0.2.dev2.tar.gz |
|---|---|
| Size | 315.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb69866e6be16525667b28fa58577a69e78abc267ae63246dd139f6e6dccc6fa
|
|
BLAKE2b-256 checksum How to use checksums |
b6a7e7cacd8b4a9e22e575b56e41d74d59c2c5a59ae6deaf0528c3af7360317a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.
Transparency logRelease files / antfly_sdk-0.0.2.dev2-py3-none-any.whl
| Download URL | antfly_sdk-0.0.2.dev2-py3-none-any.whl |
|---|---|
| Size | 659.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03e1cd3283a51c8e69d4c8592884ae1b29d69ec84f4252c6629a2ce256ab2ab6
|
|
BLAKE2b-256 checksum How to use checksums |
af2a92cf8527e34ce7fabe791e6336552345b8b14dcdd8941748ce6d93abf256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.
Transparency logSecurity for antfly-sdk 0.0.2.dev2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for antfly_sdk-0.0.2.dev2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 4, 2026.
Transparency logA 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.