CodeCombat Python Library
Documentation
API documentation is available at https://codecombat.com/api-docs.
Installation
Add this dependency to your project's build file:
pip install codecombat
# or
poetry add codecombat
Usage
from codecombat.client import CodeCombatApi
client = CodeCombatApi(
username="CLIENT_ID", password="CLIENT_SECRET")
const response = client.users.set_ace_config(
document_id="document_id",
live_completion=True,
language="python"
);
print('Received response from Code Combat', response);
Async client
This SDK also includes an async client, which supports the await syntax:
from codecombat.client import AsyncCodeCombatApi
client = AsyncCodeCombatApi(
username="CLIENT_ID", password="CLIENT_SECRET")
async def set_ace_config() -> None:
await client.users.set_ace_config(
document_id="document_id",
live_completion=True,
language="python"
);
Beta status
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version in your build.gradle file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
Contributing
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
On the other hand, contributions to the README are always very welcome!
Metadata
Release files for codecombat 0.1.8
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 |
|---|---|---|---|---|
| codecombat-0.1.8.tar.gz | 14.2 kB | Without provenance | Details for codecombat-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codecombat-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for codecombat-0.1.8-py3-none-any.whl |
Total release size: 47.2 kB
Release files / codecombat-0.1.8.tar.gz
| Download URL | codecombat-0.1.8.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c86acba1f818005ef11ea702a5e9151f9064e15279ca01e0aceaea4472771c3
|
|
BLAKE2b-256 checksum How to use checksums |
0cb56f22d0dbc60412df7269aa0a69c8de3edb7b0dfa712a776e77e98f0ca756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1042-azure
|
Release files / codecombat-0.1.8-py3-none-any.whl
| Download URL | codecombat-0.1.8-py3-none-any.whl |
|---|---|
| Size | 33.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5448e902f8785442b6115613258a921f09791c42416ff46f404f3fd81eb60e24
|
|
BLAKE2b-256 checksum How to use checksums |
c5fca983a0c4003b8ad09e1f2653ec34a194036dfa6911fd41aeadd035f289e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1042-azure
|
Security for codecombat 0.1.8
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.