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.7.tar.gz
.
File metadata
- Download URL: codecombat-0.1.7.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 | a13d255014878d4658dfd440a5c863a416b86cadb1024e65158d4eab2162c5ee |
|
MD5 | 24b05744a7eb3a4c3943381f0889149f |
|
BLAKE2b-256 | cc27c84ba5edcdcf6f50f76fc7721ebc51ce5eafb6ee9aaeffd06496e0f55862 |
File details
Details for the file codecombat-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: codecombat-0.1.7-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 | 96231710c5d153932bbde25014726e0a8ae9721aa49715adce0553d14b1e75c0 |
|
MD5 | dacdc4c797e126e4e64030d9990565e8 |
|
BLAKE2b-256 | f56eb7cfb28304c2b64c000e86e274f70201e61e1961cd7434d09cc0476e5656 |