Skip to main content

compiles and executes code files written in c, cpp, java, python and javascript

Project description

codexec

codexec is a Python package that allows you to execute code written in various programming languages (C, C++, Java, Python, and JavaScript) by making API calls to a server. The package takes code files and optional input files, executes the code, and returns the output.

Features

  • Execute code in multiple languages: C, C++, Java, Python, and JavaScript.
  • Simple command-line interface (CLI) for executing code files.
  • Supports optional input files for code that requires input.

Usage

  1. Install the package:

    You can install the codexec package using pip:

    pip install codexec
    
  2. Basic Usage:

    You can run the codexec command in your terminal to execute code files.

    Example of executing a Python file:

    codexec path/to/your/code.py
    
  3. With Input File:

    If your code requires input, you can specify an input file:

    codexec path/to/your/code.py -i path/to/input.txt
    
  4. Supported Languages:

    • C (.c)
    • C++ (.cpp)
    • Java (.java)
    • Python (.py)
    • JavaScript (.js)

How it works?

Uses codehelp.in API under the hood.

credits

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

codexec-0.1.10.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codexec-0.1.10-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file codexec-0.1.10.tar.gz.

File metadata

  • Download URL: codexec-0.1.10.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for codexec-0.1.10.tar.gz
Algorithm Hash digest
SHA256 9e8c117cf482f824d83bbe9d072086e3966fca1ac3d351b041291c7080fac041
MD5 b2078ffa2fbfa3501a3bbca669d87e8b
BLAKE2b-256 24f8588cc7ada2cfd5d7bd72606661d0b907b0028162bbd7f166ee4cf51f08a6

See more details on using hashes here.

File details

Details for the file codexec-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: codexec-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for codexec-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8a3b93dbc541ff3798c6d710b1d033b444526bc3ac004d491c508add60e3deb5
MD5 6313eab997943af94ef15fe4c7b89d1d
BLAKE2b-256 b521d75515fead604ffea8ebf925a57147e00db15d34458c2a48ef4b8a99281e

See more details on using hashes here.

Supported by

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