No project description provided
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file codecombat-0.1.8.tar.gz
.
File metadata
- Download URL: codecombat-0.1.8.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c86acba1f818005ef11ea702a5e9151f9064e15279ca01e0aceaea4472771c3 |
|
MD5 | 45318929519842bb9d97a76f0f1655a3 |
|
BLAKE2b-256 | 0cb56f22d0dbc60412df7269aa0a69c8de3edb7b0dfa712a776e77e98f0ca756 |
File details
Details for the file codecombat-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: codecombat-0.1.8-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.7.17 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5448e902f8785442b6115613258a921f09791c42416ff46f404f3fd81eb60e24 |
|
MD5 | c5b092c3825e5e3b2b398774783f8240 |
|
BLAKE2b-256 | c5fca983a0c4003b8ad09e1f2653ec34a194036dfa6911fd41aeadd035f289e1 |