Skip to main content

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

Metadata

Release files for taska 0.1.7

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

Source distribution (sdist)

Source distribution for taska 0.1.7
File Size Uploaded
taska-0.1.7.tar.gz 20.8 kB Details

Built distribution (wheel)

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

Total release size: 42.4 kB

Release files / taska-0.1.7.tar.gz

Download URL taska-0.1.7.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a43f9f8f21358e72b70057d21a24b8d8e9c50f793b4c82a1bae4ff054b615a54
BLAKE2b-256 checksum
How to use checksums
e58b8760916195ac28e775127aff5cf5a83fe95c2a22ff13d861edf2be3855c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release files / taska-0.1.7-py3-none-any.whl

Download URL taska-0.1.7-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
936469bcf3ace75329172f6614d1ad969716f456abc02d47c82ecfc1036dc2ff
BLAKE2b-256 checksum
How to use checksums
46a66d008298baa3663a74d0e3d827e55fb31724f81e2eb95fc35ada9db50137
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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