SEE Python SDK
A modern Python SDK for SEE Content Sharing services (Short URL, Text, File, etc.), featuring async support, full type safety, and Python 3.11+ capabilities.
Features
- 🚀 Modern Python: Built with Python 3.11+ features (type hints, pattern matching, dataclasses)
- 🔄 Async First: Fully async API based on
asyncioandhttpx - 📝 Type Safe: 100% type annotated with mypy strict mode support
- 🛡️ Reliable: Built-in retry mechanism, error handling, and rate limiting
- 🧪 Well Tested: Comprehensive test suite with pytest
- 📦 Standard Compliant: Follows PEP 517/518 with
pyproject.toml
Requirements
- Python 3.11+
- httpx >= 0.27.0
Installation
pip install see-sdk
or you can visit PyPI page for more options.
Install from source:
git clone https://github.com/sdotee/sdk.py see-python-sdk
cd see-python-sdk && pip install -e .
Quick Start
Environment Setup
Set your API key as an environment variable:
export SEE_API_KEY="your-api-key-here"
Basic Usage
See examples/quickstart.py for a simple example of how to create a short URL.
Examples
The examples directory contains comprehensive usage examples for all features:
- Quick Start: examples/quickstart.py - Basic usage for Short URLs.
- Short URLs: examples/complete_example.py - Advanced Short URL features (custom slugs, tags, expiration).
- Text Sharing: examples/text_sharing.py - Creating, updating, and deleting shared text.
- File Sharing: examples/file_sharing.py - Uploading and managing files.
- Advanced Usage: examples/advanced_example.py - Complex workflows and resource management.
Development
Setup
git clone https://github.com/yourusername/see-sdk.git
cd see-sdk
python -m venv venv
source venv/bin/activate # Linux/macOS
pip install -e ".[dev]"
pre-commit install
Testing
pytest
pytest --cov=see --cov-report=html
pytest tests/test_client.py
Code Quality
black src/ tests/
ruff check src/ tests/
mypy src/
API Reference
SeeClient
Main client class for API interactions.
Methods
create_short_url(request)- Create short URLupdate_short_url(request)- Update short URLdelete_short_url(request)- Delete short URLget_domains()- Get available domainsget_tags()- Get available tags
Models
CreateShortUrlRequest
@dataclass
class CreateShortUrlRequest:
domain: str
target_url: str
title: str
custom_slug: str | None = None
expire_at: int | None = None
tag_ids: list[int] | None = None
Exceptions
SeeError- Base exceptionAPIError- API errorAuthenticationError- Authentication errorValidationError- Validation errorRateLimitError- Rate limit errorNotFoundError- Not found error
Contributing
Contributions are welcome! See CONTRIBUTING.md for details.
License
MIT License - see LICENSE file.
Metadata
Release files for see-sdk 1.2.0
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 | Actions |
|---|---|---|---|---|
| see_sdk-1.2.0.tar.gz | 16.0 kB | With provenance | Details for see_sdk-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| see_sdk-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for see_sdk-1.2.0-py3-none-any.whl |
Total release size: 29.8 kB
Release files / see_sdk-1.2.0.tar.gz
| Download URL | see_sdk-1.2.0.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afe4a0a095084b173540a4b490ac5f0935adb8dc09d0ae679eb71b9faf34f2e3
|
|
BLAKE2b-256 checksum How to use checksums |
c41dcca631ece38a84edaad861cf26459899fb34e668bf53aa8b4f553e53e647
|
| 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 10, 2026.
Transparency logRelease files / see_sdk-1.2.0-py3-none-any.whl
| Download URL | see_sdk-1.2.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e8f4fadcdf33728cb702ec186a4f716608f21c7a0a6b72d9a66322a652b477e
|
|
BLAKE2b-256 checksum How to use checksums |
2f6d243445f6892d4d563c17962f1e0291836c5ca3ff3d7d35095e8b795d1e5e
|
| 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 10, 2026.
Transparency logSecurity for see-sdk 1.2.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for see_sdk-1.2.0.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 10, 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.