Skip to main content

devpost-api

Unofficial Devpost API and scraping client for hackathon scouting workflows.

CI PyPI Python License

Why use this package

  • No runtime dependencies (stdlib only)
  • Typed models and predictable public API
  • Built-in retries, exponential backoff, and rate-limit handling
  • Optional request throttling, cache, and parallel fetch
  • CLI designed for scripts (json, jsonl, csv, table)

Naming and install model

  • Install package: pip install devpost-api
  • Python import path: import devpost_api
  • CLI command: devpost-api

Install

pip install devpost-api

From source:

pip install -e ".[dev]"

Quickstart (Python)

from devpost_api import DevpostClient, RetryConfig

client = DevpostClient(
    retry_config=RetryConfig(max_attempts=4, backoff_factor=0.5),
    max_workers=8,
    min_request_interval=0.05,
    cache_ttl=30.0,
)

for project in client.iter_software(query="ai", max_pages=2):
    print(project.name)

batch = client.collect_projects(
    [
        "https://devpost.com/software/api",
        "https://devpost.com/software/does-not-exist",
    ],
    include_github=True,
)
print(len(batch.projects), len(batch.failures))

Quickstart (CLI)

# JSON (default)
devpost-api software --query ai --page 1

# CSV for shell pipelines
devpost-api --format csv --fields name,url software --query ai --page 1

# Batch project fetch from a file (one URL/slug per line)
devpost-api --format jsonl project --input-file projects.txt --with-github --best-effort

# Batch GitHub enrichment from stdin
printf "openai/openai-python\npsf/requests\n" | devpost-api github --stdin --best-effort --format table

If devpost-api is not on your PATH, use python -m devpost_api.cli ....

Public API

  • DevpostClient.list_software(page=1, query=None)
  • DevpostClient.list_users(page=1)
  • DevpostClient.list_hackathons(page=1, status=None)
  • DevpostClient.iter_software(query=None, start_page=1, max_pages=None)
  • DevpostClient.iter_users(start_page=1, max_pages=None)
  • DevpostClient.iter_hackathons(status=None, start_page=1, max_pages=None)
  • DevpostClient.get_project(slug_or_url, include_github=False, raise_on_error=True)
  • DevpostClient.get_projects(slugs_or_urls, include_github=False, raise_on_error=True)
  • DevpostClient.collect_projects(slugs_or_urls, include_github=False)
  • DevpostClient.get_github_repo(url_or_owner_repo)
  • DevpostClient.get_github_repos(urls_or_owner_repo, raise_on_error=True)
  • DevpostClient.list_hackathon_project_urls(hackathon_slug_or_url, pages=1)
  • DevpostClient.scout_hackathon_projects(hackathon_slug_or_url, pages=1, include_github=False, raise_on_error=True)
  • DevpostClient.clear_cache()

Reliability knobs

  • --retries, --backoff, --max-backoff, --jitter
  • --workers for parallel bulk operations
  • --min-interval for global request spacing
  • --cache-ttl for in-memory GET cache
  • --best-effort for batch item error tolerance

Development workflow

Run tests:

python -m unittest discover -s tests

Run quality checks:

ruff check .
mypy src
coverage run -m unittest discover -s tests
coverage report

Build and verify artifacts:

python -m build
python -m twine check dist/*

Notes

  • This package is unofficial and not affiliated with Devpost.
  • Use responsibly and comply with Devpost and GitHub terms/policies.

Metadata

Release files for devpost-api 1.0.2

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

Source distribution (sdist)

Source distribution for devpost-api 1.0.2
File Size Uploaded Provenance Actions
devpost_api-1.0.2.tar.gz 26.4 kB Without provenance Details for devpost_api-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for devpost-api 1.0.2
File Interpreter ABI Platform Actions
devpost_api-1.0.2-py3-none-any.whl Python 3 none any Details for devpost_api-1.0.2-py3-none-any.whl

Total release size: 49.0 kB

Release files / devpost_api-1.0.2.tar.gz

Download URL devpost_api-1.0.2.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
766ae03cd54ca8ce392241998cf8b7aff683eabb95537002d24b428a09f8f23d
BLAKE2b-256 checksum
How to use checksums
6c9fb853cdee7a9627d228cf28409248fb502049967fe9e3f6022f412802b5fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / devpost_api-1.0.2-py3-none-any.whl

Download URL devpost_api-1.0.2-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03fa2035eddb1045130ae65f12513f76f1f035ca1664a93ddedc3e0882881ffd
BLAKE2b-256 checksum
How to use checksums
eda446f82141fe4c6d6b2bde78e0dfddc7792ab142a888d82c22ea8c6cabbad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for devpost-api 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

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