Skip to main content

Taska is a web console for running python code

Project description

taska

Code runner with typing-hint. Less is more, simple is the best.

Folder structure:

WORK_DIR > Python > Venv > Workspace > Job

Usage:

python -m taska ./demo --host=127.0.0.1 --port=8021

Demo files:

  • /root_dir

    root_dir=$WORK_DIR/$CWD

    • /runner.py
    • /pids/
    • /default_python
      • python_path(sys.executable)
      • /venv1
        • requirements.md5
        • requirements.txt
          • morebuiltins
        • /workspaces/workspace1 (code1.py, code2.py, package1/module.py)
          • sys.path.insert(0, workspace1)

          • /jobs
            • /job1
              • /meta.json

                cwd=/workspace1(const)
                python_path=/work_dir/default_python/venv1/bin/python.exe
                entrypoint=package1.module:function1
                params={"arg1": 1, "arg2": "str"}
                enable=1
                crontab=0 0 * * *
                mem_limit="1g"
                result_limit="15m"
                stdout_limit="10m"
                timeout=60

              • /pid.txt(int)

                29238

              • /stdout.log
              • /result.log

                {"start": "2024-07-14 23:30:57", "end": "2024-07-14 23:33:57", "result": 321}

            • /job2
              • /meta.json

                cwd=/workspace1(const)
                python_path=/work_dir/default_python/venv1/bin/python.exe
                entrypoint=code1:function2
                params={}
                crontab=0 */5 * * *
                mem_limit="100m"
                result_limit="10m"
                stdout_limit="10m"
                timeout=10

              • /pid.txt(int)

                32162

              • /stdout.log
              • /result.log

                ({"start": "2024-07-14 23:30:57", "end": "2024-07-14 23:33:57", "result": 321}\n)

        • /workspaces/workspace2 (code3.py)
    • /default_python2
      • python_path(executable=/usr/bin/python3.11)
      • /venv2
        • requirements.md5
        • requirements.txt
          • requests
          • selectolax

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

taska-0.1.7.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

taska-0.1.7-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

Details for the file taska-0.1.7.tar.gz.

File metadata

  • Download URL: taska-0.1.7.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for taska-0.1.7.tar.gz
Algorithm Hash digest
SHA256 a43f9f8f21358e72b70057d21a24b8d8e9c50f793b4c82a1bae4ff054b615a54
MD5 1a96c17000ac6b884a622cee97d9ff11
BLAKE2b-256 e58b8760916195ac28e775127aff5cf5a83fe95c2a22ff13d861edf2be3855c0

See more details on using hashes here.

File details

Details for the file taska-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: taska-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 21.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for taska-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 936469bcf3ace75329172f6614d1ad969716f456abc02d47c82ecfc1036dc2ff
MD5 fa4a343acc54f38a1877efad0ab90ee2
BLAKE2b-256 46a66d008298baa3663a74d0e3d827e55fb31724f81e2eb95fc35ada9db50137

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