Skip to main content

Codegyan Python Library

A Python library to interact with the Codegyan API.

Language PyPI - Downloads PyPI - License GitHub Downloads (all assets, all releases)

Installation

pip install codegyan

Usage

Before using the Pakage, you need to obtain an API key and client ID from Codegyan. Follow these steps to get your API credentials:

  1. Sign Up/Login: If you don't have an account, sign up for a Codegyan account. If you already have an account, log in to your dashboard.

  2. Get Credentials: Once logged in, navigate to the Developer Console or API settings in your account dashboard. Here, you will find your API key and client ID. Copy these credentials and use them when initializing the Pakage in your code.

Here's an example of how to initialize the npm pakage with your API key and Client ID:

from codegyan import Codegyan

# Define your API credentials
api_key = "YOUR API KEY"
client_id = "YOUR CLIENT ID"

# Initialize the Codegyan client
client = Codegyan(api_key, client_id)

# Define the language and code to be compiled
lang = "python"
code = 'print("Hello, World!")'

# Use the Compiler API to compile the code
result = client.compilerApiClient.compile(lang, code)
print(result)

Replace YOUR_API_KEY and YOUR_CLIENT_ID with your actual API key and Client ID provided by Codegyan. Pass the code you want to compile to the compile function.

Tests

To run the unit tests, use the following command:

python -m unittest discover tests

Make sure to replace tests with the actual path to your test directory if it's different.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT license. See the LICENSE file for details.

Metadata

Release files for codegyan 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codegyan 1.1.0
File Size Uploaded Provenance Actions
codegyan-1.1.0.tar.gz 8.2 kB Without provenance Details for codegyan-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codegyan 1.1.0
File Interpreter ABI Platform Actions
codegyan-1.1.0-py3-none-any.whl Python 3 none any Details for codegyan-1.1.0-py3-none-any.whl

Total release size: 16.8 kB

Release files / codegyan-1.1.0.tar.gz

Download URL codegyan-1.1.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4eb335ce90025932766a65d9a15005e4630596a9b6670420bdd23ebbc269953d
BLAKE2b-256 checksum
How to use checksums
0a3e0733e51527771ddea64a63b88ce1bf31778611687590e08917562500518d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / codegyan-1.1.0-py3-none-any.whl

Download URL codegyan-1.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0270eead1c79aae0243dfcbd9b1868950549c0b0eedf49408ff8aadeb4e9c77b
BLAKE2b-256 checksum
How to use checksums
893d14f6fe7373ed6db04cc2ae540993a165d3eec9e4eb49b2359014e811beb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for codegyan 1.1.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page