Skip to main content

No project description provided

Project description

CodeCombat Python Library

pypi fern shield

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codecombat-0.1.7.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

codecombat-0.1.7-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

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

Hashes for codecombat-0.1.7.tar.gz
Algorithm Hash digest
SHA256 a13d255014878d4658dfd440a5c863a416b86cadb1024e65158d4eab2162c5ee
MD5 24b05744a7eb3a4c3943381f0889149f
BLAKE2b-256 cc27c84ba5edcdcf6f50f76fc7721ebc51ce5eafb6ee9aaeffd06496e0f55862

See more details on using hashes here.

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

Hashes for codecombat-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 96231710c5d153932bbde25014726e0a8ae9721aa49715adce0553d14b1e75c0
MD5 dacdc4c797e126e4e64030d9990565e8
BLAKE2b-256 f56eb7cfb28304c2b64c000e86e274f70201e61e1961cd7434d09cc0476e5656

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page