dailydotsnek
A small, friendly Python client for the daily.dev public API.
Feeds, posts, bookmarks, profile tools, and search — with rate-limit-aware GET retries.
Get started
python -m pip install dailydotsnek
The SDK requires Python 3.10 or later. It installs its HTTP and .env dependencies automatically.
Your first request
Create a .env file in your project directory:
DAILY_DEV_KEY=your_daily_dev_api_token
Keep this file private: do not commit API tokens to source control.
from snek.snekSDK import SnekSDK
from snek.tokenSys import AutoApiToken
client = SnekSDK(AutoApiToken())
popular_posts = client.getPopularFeed()
print(popular_posts)
print("Remaining requests:", client.getRateRemaining())
Prefer explicit secret management? Pass the token directly:
from snek.snekSDK import SnekSDK
from snek.tokenSys import ManualApiToken
client = SnekSDK(ManualApiToken("your_daily_dev_api_token"))
Rate limits, handled thoughtfully
When daily.dev returns HTTP 429 Too Many Requests, the SDK automatically waits for the server's Retry-After value and retries GET requests up to three times. If the header is missing or invalid, it uses a short exponential delay. It does not automatically replay POST, PUT, PATCH, or DELETE requests, so a write is never silently duplicated.
If a request still cannot proceed, the SDK raises RateLimitError, a requests.HTTPError subclass. It includes the original response and a suggested retry_after wait:
from snek.rawFetch import RateLimitError
try:
posts = client.getPopularFeed()
except RateLimitError as error:
print(f"Rate limit reached. Try again in {error.retry_after} seconds.")
Rate-limit helpers report headers from the most recent API response. They return None before the first request or when that response did not include the requested header.
What’s included
| Area | Examples |
|---|---|
| Feeds | Personalized, popular, discussed, tag, and source feeds |
| Posts | Retrieve posts and their comments |
| Search | Search posts, tags, and sources |
| Bookmarks | Manage bookmarks and bookmark lists |
| Profile | Read and update your profile, stack, and experiences |
| API utilities | Tags, keyword recommendations, rate-limit headers |
Documentation
Explore the full documentation, including the installation guide, quickstart and error handling, API reference, and publishing guide.
To preview the documentation site locally:
python -m pip install mkdocs-material
python -m mkdocs serve
Metadata
Release files for dailydotsnek 1.3.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 |
|---|---|---|---|---|
| dailydotsnek-1.3.0.tar.gz | 1.2 MB | Without provenance | Details for dailydotsnek-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dailydotsnek-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for dailydotsnek-1.3.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / dailydotsnek-1.3.0.tar.gz
| Download URL | dailydotsnek-1.3.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2419111b1f38a87bf1d8ed9b33aba55c209972437b24facb82597133946057c
|
|
BLAKE2b-256 checksum How to use checksums |
1f10933c7f52c22c077bd2d75e2426cdadcf718a8a59acd93cab51c08b18ed0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / dailydotsnek-1.3.0-py3-none-any.whl
| Download URL | dailydotsnek-1.3.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c305733b1eb402224876f5fbba41a472ed0fa06cfa35c443fac016d094676a9e
|
|
BLAKE2b-256 checksum How to use checksums |
5cf12576fe46230f6829b1e35310dee2f54abcaa5d4d633e3ee4ff707b98ed79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for dailydotsnek 1.3.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.