scapi: Python Client for STALCRAFT API
scapi is an unofficial asynchronous wrapper for external STALCRAFT API.
It provides access to read-only game endpoints including auction, emissions, clans, profiles, and etc.
✨ Features
AppClientandUserClientfor API requestsOAuthClientfor OAuth 2.0 authorization flowsDatabaseLookupfor items search- Typed Pydantic model responses
- Configurable default parameters
- Rate limit information access
📌 Before You Start
To use the API, you must register an application and receive approval. Use App tokens for public resources or User tokens (via OAuth) for player-specific resources like character friends. Demo API is available at https://dapi.stalcraft.net for testing without registration.
🛠️ Installation
pip install stalcraft-api -U
🚀 Quick Start
from scapi import AppClient, Region
import asyncio
import os
# Initialize app client with your credentials
client = AppClient(client_id=os.getenv("CLIENT_ID"), client_secret=os.getenv("CLIENT_SECRET"))
# OR use generated token from OAuthClient
client = AppClient(token=os.getenv("APP_TOKEN"))
async def main():
# Get emission status for current region
emission = await client.emission()
print(f"Last emission ended at: {emission.previous_end}")
# Get public character information
profile = await client.profile("ZIV")
print("Character profile:", profile)
# Fetch last 3 auction lots for item with id "zyv9"
lots = await client.auction("zyv9").lots(limit=3)
print("Actual lots:", lots)
# Other methods can be know in docs:
# https://sc-api.rtfd.io
asyncio.run(main())
📚 Documentation
Complete documentation is available at sc-api.readthedocs.io, including:
Metadata
Release files for stalcraft-api 2.1.2
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 |
|---|---|---|---|---|
| stalcraft_api-2.1.2.tar.gz | 32.7 kB | Without provenance | Details for stalcraft_api-2.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stalcraft_api-2.1.2-py3-none-any.whl | Python 3 | none | any | Details for stalcraft_api-2.1.2-py3-none-any.whl |
Total release size: 65.6 kB
Release files / stalcraft_api-2.1.2.tar.gz
| Download URL | stalcraft_api-2.1.2.tar.gz |
|---|---|
| Size | 32.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cae909d287dc8dccac51a35127690321903994c413b1ee3f651b0831832c6613
|
|
BLAKE2b-256 checksum How to use checksums |
6bf37fdfdd4c42da45c18fcd80801d5fa1f65c81f4ddbbea0228de42526dbb49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / stalcraft_api-2.1.2-py3-none-any.whl
| Download URL | stalcraft_api-2.1.2-py3-none-any.whl |
|---|---|
| Size | 32.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daa29eb15f2c9676ea0a80bcc8c65446e73ad3e5c0bccb47f87b4301b60f9ab1
|
|
BLAKE2b-256 checksum How to use checksums |
6f28696aa8bcccdd8da32f7ee016b5b186d05ec7b65cc4925d512399f480c577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for stalcraft-api 2.1.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.