Skip to main content

A ADK-dev Kit

Project description

ADK

A Develop Kit, for easy coding.

Develop Tools:

RPC

  • Console Commands: adk/adk.d config/start, details see "adk -h" for help
  • RPC config: adk.set_rpc_config, adk.get_rpc_config, adk.rpc_connect_args
  • adk.TaskManager, implemented methods ['set', 'get', 'clear', 'get_work_que', 'get_res_que', 'run']
  • adk.start_rpc_server, base class is multiprocessing.managers.BaseManager
  • adk.start_rpc_worker, get task from queue(get_work_que()), put result to queue(get_res_que())
  • adk.rpc_client, get rpc client. ['set', 'get', 'clear'] for cache data, 'run' for submit task to server
  • adk.clt, a rpc client instance like above, for convenience

Utils

  • adk.TaskQue, Task Queue with key-value mapping, priority, speed limit, timeout and callbacks.
  • adk.PriQue, Priority Queue with mutex lock and speed limit.
  • adk.PriDict, Priority Dict with mutex lock and speed limit.

Data types:

Priority containers

extension of heap, main methods are: push, pop, peek

  • adk.PriorityQueue, Priority Queue, push(data, priority)
  • adk.SimplePriorityQueue, Priority Queue, push(priority)
  • adk.PriorityDict, Priority Dict, push(key, data, priority)
  • adk.SimplePriorityDict, Priority Dict, push(key, priority)

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

adk-0.0.5.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

adk-0.0.5-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file adk-0.0.5.tar.gz.

File metadata

  • Download URL: adk-0.0.5.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for adk-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2ebee524e50d6130e292bca063ac7965436085945cba70ac6f42b976352d4eba
MD5 6ee5392f85bba9ffcd644179821449cf
BLAKE2b-256 474e9a0aa6b08a3847d8a34b3efc690e10f81f332acd5b8ab2575e44b099bf2e

See more details on using hashes here.

File details

Details for the file adk-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: adk-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for adk-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b69ca8e43a4336e8bb361062c7121e72b0883821653169867b29b80abb17fc
MD5 c529d1cddef51d084c8aa38a68d0a269
BLAKE2b-256 d0a3ce50cb03b9c24f97c03481772698448f40c9a7f85a7febc046d242b2a674

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