Saravanan666/pypi-org huggingface dataset:
Package: taskue
TasKueMulti stages task queue usesRedisas a backend.FeaturesMulti stages.Retry on fail for a defined number of retires.Capture task logs.Task can be taged with label so it will run only on runners that has the same tag.Skip task if any task of the previous stages failed.InstallationpipinstalltaskueGetting startedStart a runnertaskuerunnerstart--redis-host<localhost>--redis-port<6379>More options:tags: Runner tags, taged tasks will run only on runners which has its tagtimeout: Runner timeout, task timeout overwrites it (default 1 hour)run_untaged_tasks: Allow runner to run untaged tasks (enabled by default).path: add the path of a module to include.How it worksfromredisimportRedisfromtaskueimportTaskue,Tasktskue=Taskue(Redis())# define taskst1=Task()t1.execute(print,"Hello from task 1")t1.retries=3# retry up to 3 times on failuret2=Task()t2.timeout=5# set task timeout to 5t2.execute(print,"Hello from task 2")t3=Task()t3.skip_on_failure=True# skip this task if any task of the previous stage failedt3.execute(print,"Hello from task 3")Execute single task# execute single tasktask_uid=tskue.run(t1)or execute multiple tasks as a workflow# run task t1 and task t2 in stage 1 and task t3 in stage 2workflow_uid=tskue.run_workflow([[t1,t2],[t3]])Hint: All the tasks in the same stage run in parallel, and each stage starts when the previous stage finish.CLItaskue--help
Usage:cli.py[OPTIONS]COMMAND[ARGS]...

Options:--redis-hostTEXTredishostname--redis-portINTEGERredisport--helpShowthismessageandexit.

Commands:runnertaskworkflowcommandsrunner:start: start new runnertask:list: list all tasksget: get task info using its uidlogsget task logsdeletedelete taskworkflowlist: list all workflowsget: get workflow info using its uidlogsget workflow logsdeletedelete workflowTo DoDetect dead runner and reschedule its task.Add more docs and examplesAdd tests
Package: taskuma2org
Table of Contentstaskuma2orgInstallExampleHelpA simple caseIf you edittaskuma.csvto remove first two linesStdin is allowedHow to get log file from TaskumaLicensetaskuma2orgtaskuma2org is a Python package for parsing Taskuma log into org-mode format.
It utilizesmemacspackage.Taskuma is an iPhone App for task management and lifelogging. See AppStore.InstallInstall and update usingpip.$ pip install taskuma2orgExampleHelp$ taskuma2org --helpA simple case$ taskuma2org taskuma.csvIf you edittaskuma.csvto remove first two lines$ taskuma2org --no-skip taskuma.csvStdin is allowed$ cat taskuma.csv | taskuma2org -How to get log file from TaskumaGo to "Log" tabChoose the time period by tapping the clendar button and View buttonTap share button and choose "Send Report"On the screen showing map, tap email buttonSend mail to yourselfRetrieve csv file attached the aforementioned mail.LicenseGPLv3
Package: taskutils
# tasktuilstaskutilsis a implements a multithreaded scheduler in Python.
It provide methods to enqueue tasks and set simple policies, for example:execute once with this priorityexecute every 10 minutesretry twice if it failsexecute no more than 3 tasks concurrentlyIt can used to power more complex programs that need concurrency, for example a crawler.Here is an example of usage:### Install itpip install taskutils### Import the relevant objectsfrom taskutils import TaskHandler, Task, Recurrent### Create the main task handler objecttask_handler = TaskHandler(max_num_threads=3, sleep_seconds=2)This will create 3 threads that wait for tasks to be queued every 2 seconds.### Queue some simple tasksdef foo(k): print ‘hello world from task %s’ % kfor k in range(10):task = Task(foo, kwargs=dict(k=k), priority=k, repeats_on_failure=3)
task_handler.enqueue_task(task)This will enqueue 10 tasks (with arbitrary parameter k=0…9) which will be executed by
the task handler threads when free. If a task fails it will be retried 3 times before being
discarded. Notice that a task contain a function (in this case foo) and its arguments.### Queue a recurrent tasktask = Task(foo, kwargs=dict(k=10), repeats_on_failure=0)
task_handler.recurrent_tasks[‘abc’] = Recurrent(task, interval=3, repeats=5)Recurrent tasks are wrapped into the Recurrent() object and must be named (for example ‘abc’).
Recurrent tasks are named because they are not placed in the normal queue but are executed always
with max priority when their time comes. In the above example the ‘abc’ task is executed
5 times every 3 seconds. A recurrent task can be removed viadel task_handler.recurrent_tasks[‘abc’]### Other goodiesfrom taskutils import LockWrapper
with_a_lock = LockWrapper()It defines a decorator that makes sure all code called with the decorator is always serialized, even if called in different Tasks:@with_a_lock
def f(): print ‘a’@with_a_lock
def g(): print ‘b’task_handler.enqueue_task(Task(f))
task_handler.enqueue_task(Task(g))This makes sure that the excution of functions f and g is never concurrent.## LicenseCreated by Massimo Di Pierro (http://experts4solutions.com) @2016 BSDv3 License
Package: taskw
This is a python API for thetaskwarriorcommand
line tool.It contains two implementations:taskw.TaskWarriorShelloutandtaskw.TaskWarriorDirect.  The first implementation is the supported one
recommended by the upstream taskwarrior core project.  It uses thetask exportandtask importcommands to manipulate the task database.  The
second implementation opens the task db file itself and directly manipulates
it.  It exists for backwards compatibility, but should only be used when
necessary.Build StatusBranchStatusmasterdevelopGetting taskwInstallingUsingtaskwrequires that you first installtaskwarrior.Installing it fromhttp://pypi.python.org/pypi/taskwis easy withpip:$ pip install taskwThe SourceYou can find the source on github athttp://github.com/ralphbean/taskwExamplesLooking at tasks>>> from taskw import TaskWarrior
>>> w = TaskWarrior()
>>> tasks = w.load_tasks()
>>> tasks.keys()
['completed', 'pending']
>>> type(tasks['pending'])
<type 'list'>
>>> type(tasks['pending'][0])
<type 'dict'>Adding tasks>>> from taskw import TaskWarrior
>>> w = TaskWarrior()
>>> w.task_add("Eat food")
>>> w.task_add("Take a nap", priority="H", project="life", due="1359090000")Retrieving tasks>>> from taskw import TaskWarrior
>>> w = TaskWarrior()
>>> w.get_task(id=5)Updating tasks>>> from taskw import TaskWarrior
>>> w = TaskWarrior()
>>> id, task = w.get_task(id=14)
>>> task['project'] = 'Updated project name'
>>> w.task_update(task)Deleting tasks>>> from taskw import TaskWarrior
>>> w = TaskWarrior()
>>> w.task_delete(id=3)Completing tasks>>> from taskw import TaskWarrior
>>> w = TaskWarrior()
>>> w.task_done(id=46)Being FlexibleYou can pointtaskwat different taskwarrior databases.>>> from taskw import TaskWarrior
>>> w = TaskWarrior(config_filename="~/some_project/.taskrc")
>>> w.task_add("Use 'taskw'.")Looking at the config>>> from taskw import TaskWarrior
>>> w = TaskWarrior()
>>> config = w.load_config()
>>> config['data']['location']
'/home/threebean/.task'
>>> config['_forcecolor']
'yes'Using Python-appropriate Types (Dates, UUIDs, etc)>>> from taskw import TaskWarrior
>>> w = TaskWarrior(marshal=True)
>>> w.get_task(id=10)
(10,
 {
  'description': 'Hello there!',
  'entry': datetime.datetime(2014, 3, 14, 14, 18, 40, tzinfo=tzutc())
  'id': 10,
  'project': 'Saying Hello',
  'status': 'pending',
  'uuid': UUID('4882751a-3966-4439-9675-948b1152895c')
 }
)
Package: taskwarrior-blocks-capsule
When defining tasks in taskwarrior, you currently have only one option–
annotating which tasks a given task depends upon using thedepends:argument.  This capsule adds a new argument –blocks:which you can
use for creating task dependencies from the opposite side.InstallationMake sure you haveTaskwarrior-Capsulesinstalled.Install this library:pip install taskwarrior-blocks-capsuleThat’s all!UseCreate a task that blocks another by using theblocks:argument
with comma-separated list of task UUIDs or IDs; imagine that you have
a task with an ID of25for which you’d like to create a dependent
task:tw add "Make sure to apply peanut butter to bread" blocks:25The above command will cause two commands to be executed behind the
scenes:task add "Make sure to apply peanut butter to bread"
# let's pretend that this is created as task #26

task 25 modify depends:26
Package: taskwarrior-hook-time-tracking
Install using pip:pip install taskwarrior-hook-time-trackingAnd add it to your Taskwarrior hooks:mkdir -p ~/.task/hooks
ln -s `which taskwarrior_timetracking` ~/.task/hooks/on-modify.timetrackingUsetask <TASK ID> startandtask <TASK ID> stopto record when you have
started and stopped working on tasks.Tracked time is stored in a task attribute namedtimetrackingsecondsholding
the total number of seconds that the task was active.
Package: taskwarrior-jrnl-hook
taskwarrior_jrnl_hookTaskwarrior allow annotation of tasks, but I find it less practical than using jrnl to do so. This hook bring together both of this great tools.TaskwarriorjrnlThis script was inspirated bytaskwarrior-time-tracking-hookPrincipalStarting a task will automatically pass its description to jrnl. If started task have tags they will be added into the title with corresponding symbol in jrnl (by default, jrnl tags are mark with "@").$tasklist
IDTagsDueDescription1administrationperso2018-09-21Payelectricitybill
$task1startThat action will call the hook and run jrnl as a subprocess.jrnl"Pay electricity bill @administration @perso"Now, if you look in your jrnl you should see task description added as title with tags from taskwarrior.jrnl-12018-09-219h35Payelectricitybill@administration@persoInstallpipinstalltaskwarrior-jrnl-hookThen add the hook to .task/hook foldermkdir-p~/.task/hooks
ln-s~/.local/bin/taskwarrior_jrnl_hook~/.task/hooks/on-modify.jrnlConfigurationBy default this hook will look config info in your ~/.taskrc config file. Default options are built in the hook, if you want to change hook behavior put options entry in your taskwarrior config file.Options :jrnl namejrnl configurationtagsprojectfilterjrnl nameNameDefaultDescriptionjrnl_namedefaultjnrl name to callIf specify, this hook will use the jrnl name defined in the config, otherwise it will usedefaultas jrnl name.Personally I write a journal for each month, so I added an option to get month name from started task and use it as jrnl name.NameDefaultDescriptionjrnl_by_monthFalseUse month as jrnl namelanguageenmonth's language to outputIf set toTruehook script will call jrnl for the given month. You can specify language in order to get the right spelling for the month. Month is written in all letters with no capital.jrnl configurationNameDefaultDescriptionjrnl_config~/.jrnl_configPath to your jrnl configurationIn order to use correct tags symbol used in your jrnl, the script need to read your jrnl's configuration.tagsNameDefaultDescriptionjrnl_tagsTrueAdd tags to jrnlThis option allow you to add taskwarrior tags to your jrnl's title.projectNameDefaultDescriptionadd_projectTrueAdd project to jrnlThis option add project name under your title in the body.filterNameDefaultDescriptionfilter_tagsNoneTasks to be excluded by tagsThis option allow you to exclude by tags tasks that you don't want to see in your jrnl.
Package: taskwarrior-timebook-hook
Install using pip:pip install taskwarrior-timebook-hookAnd add it to your Taskwarrior hooks:mkdir -p ~/.task/hooks
ln -s `which taskwarrior_timebook_hook` ~/.task/hooks/on-modify.timebookUsetask <TASK ID> startandtask <TASK ID> stopto record when you have
started and stopped working on tasks.Tasks will appear in yourTimebookautomatically.
Package: taskwarrior-timecrimes
Travel back in time and undo your duplicate tasks’ creation.WARNING: This has only barely been tested, and although it did
work as expected for the use case I wrote it for, the command it
generatesmightbe incorrect.  Do read through the prompts
carefully, and use this at your own risk!InstallationInstall usingpip:pip install taskwarrior-timecrimesUseJust run the following command in a shell:taskwarrior_timecrimesYou’ll be presented with a list of dates having recent changes.
After selecting the date that you’d like the duplicated recurrences
to be deleted from, the command you can run to delete those tasks
will be generated and printed to the console so you can run it yourself.
Package: taskwarrior-time-tracking-hook
Install using pip:pip install taskwarrior-time-tracking-hookAnd add it to your Taskwarrior hooks:mkdir -p ~/.task/hooks
ln -s `which taskwarrior_time_tracking_hook` ~/.task/hooks/on-modify.timetrackingUsetask <TASK ID> startandtask <TASK ID> stopto record when you have
started and stopped working on tasks.Tracked time is stored in a task duration attribute namedtotalactivetimeholding the total number of seconds that the task was active.By default, this plugin allows you to have one task active at a time. You can
change this by settingmax_active_tasksintaskrcto a value greater than 1.
Package: taskw-ng
taskw-ng- Python API for the Taskwarrior DBThis project is a continuation of thetaskw python
wrapper.This is a python API for theTaskwarriorcommand line
task manager. It supports interacting with Taskwarirrior version >=2.5.Gettingtaskw-ngInstallingUsingtaskw-ngrequires that you first installTaskwarrior.Installing it fromhttp://pypi.org/project/taskw-ngis easy withpip:pipinstalltaskw-ngExamplesLooking at tasksfromtaskw_ngimportTaskWarriorw=TaskWarrior()tasks=w.load_tasks()tasks.keys()# ['completed', 'pending']type(tasks['pending'])# <type 'list'>type(tasks['pending'][0])# <type 'dict'>Adding tasksfromtaskw_ngimportTaskWarriorw=TaskWarrior()w.task_add("Eat food")w.task_add("Take a nap",priority="H",project="life",due="1359090000")Retrieving tasksfromtaskw_ngimportTaskWarriorw=TaskWarrior()w.get_task(id=5)Updating tasksfromtaskw_ngimportTaskWarriorw=TaskWarrior()id,task=w.get_task(id=14)task['project']='Updated project name'w.task_update(task)Deleting tasksfromtaskw_ngimportTaskWarriorw=TaskWarrior()w.task_delete(id=3)Completing tasksfromtaskw_ngimportTaskWarriorw=TaskWarrior()w.task_done(id=46)Being FlexibleYou can pointtaskw-ngat different Taskwarrior databases.fromtaskw_ngimportTaskWarriorw=TaskWarrior(config_filename="~/some_project/.taskrc")w.task_add("Use taskw_ng.")Looking at the configfromtaskw_ngimportTaskWarriorw=TaskWarrior()config=w.load_config()config['data']['location']# '/home/threebean/.task'config['_forcecolor']# 'yes'Using python-appropriate types (dates, UUIDs, etc)fromtaskw_ngimportTaskWarriorw=TaskWarrior(marshal=True)w.get_task(id=10)# should give the following:# (10,#  {#   'description': 'Hello there!',#   'entry': datetime.datetime(2014, 3, 14, 14, 18, 40, tzinfo=tzutc())#   'id': 10,#   'project': 'Saying Hello',#   'status': 'pending',#   'uuid': UUID('4882751a-3966-4439-9675-948b1152895c')#  }# )
Package: taskyy
Taskyy is a command-line app for you remainders for mac.Add any remainders from your cli and get native notifications for them!
example:
taskyy add “buy eggs at 12:30 tomorrow”taskyy uses natural date parsing to remind you on time.Usage: taskyy [OPTIONS] COMMAND [ARGS]…Simple CLI for tasksOptions:--helpShow this message and exit.Commands:add
get
list
remove
Package: tasmanian-mismatch
TasmanianA tool for the analysis of reference mismatches in high throughput sequencing data from DNA samples. Unlike other tools, it is able to evalutate the portions of reads that overlap with specified regions (e.g. Repeats)GoalsContributingAuthorsLicenseGoalsThe main goal is to identify systematic missmatches that might confound SNPs or other variations that should or should not be associated to biological outcomes. Since we noticed a set of regions, which might not necessarily be missplaced in the reference genome, have dramatic effects in this analysis, we provide a way of spliting these reads and incorporate the information in different tables, so that intersecting/non intersecting reads are not filtered out. Also, the researcher has a more accurate picture of the influence of these regions in the observed artifacts.Overview of Tasmanian use:samtoolsviewbam|run_intersections[OPTIONS]|run_tasmanian[OPTIONS]Classification of each base of the read into overlapping (in which case could be contained or boundary - see figure below) or Non-overlapping with regions of interest included in a bed/bedgraph file.Positional analysis of artifacts splitted by read 1 and read 2.The output includes tables to manupulate and plot the data and a built in report for fast access the data (see figure below).Easy to use command-line andnextflowimplementation.Includes aGalaxywrapperContributingContributions are welcome and encouraged.AuthorsBrad LanghorstAriel ErijmanLicensetasmanian artifact metrics toolis open source software released under theGNU License.
Package: tasmidi
tasmidiWhat is this?tasmidiis a collection of tools used to convert a LibTAS input file into a MIDI file. There are two steps to this: producing a mapping file to tell the program what notes correspond to what input, and using that mapping file to create the MIDI.InstallationpipinstalltasmidiHow do I get the input file?Assuming that your LibTAS movie file is calledtas-movie.ltm:tarxvzftas-movie.ltmThis will produce several files, but the only one that we are interested in is calledinputs.UsageBoth commands in this package have their own--helpflag for specific usage. A typical workflow looks like:tasmidi-mapinputs>mapping.json# Generate a mapping file for the inputstasmidi-convertinputs-mmapping.json# Use that mapping and the input file to create a MIDI
Package: tasmotadevicecontroller
Tasmota Device ControllerThis packag provides async wrappers for Tasmota's web request API.Only very few requests are implemented so far! If you need other requests, please have a look at the sectionContributing, or create an issue.getmethods return the value of the fetched item,setmethods return the new set value (so what thegetmethod would return after the set). However there are some exceptions likeBLINKforsetPower()which always returnsTrue, but that should be mentioned in the methods description.Since this package was created for a Home Assistant integration, you can check outthat integrationfor other sample usage.Example usage:importasynciofromtasmotadevicecontrollerimportTasmotaDevicefromtasmotadevicecontrollerimporttasmota_typesastasyncdefmain():device=awaitTasmotaDevice.connect('192.168.10.21')# Get friendly name (of first output, which is the default output)nameResult=awaitdevice.getFriendlyName()print(nameResult)# Returns 'My Tasmota Plug'# Get power of first outputgetResult=awaitdevice.getPower()print(getResult)# Returns True (on)# Set power of first output to onsetResult=awaitdevice.setPower(t.PowerType.TOGGLE)print(setResult)# Returns True or False (depending if the device was switched on or off)loop=asyncio.get_event_loop()loop.run_until_complete(main())ContributingIf you want to add new requests, can implement these commands and create a merge request onGitHub.Almost every command is implemented as one getter method and one setter method. Add your command if possible in the same way inside theTasmotaDeviceclass. Remember to add descriptions to each method. This description can usually be taken from the Tasmota wiki.Also, remember to always useasyncawait!If the command takes values from a specific set of values, create anEnuminsidetasmota_types.pyfor it.
Package: tasq
TaskSquirrelTaskSquirrel executes tasks from aTasqfile.yml. It is similar tomakeorinvoke. It also supports Kubernetes workflows likeArgoandAirflow.Differences from other tools are:configuration is in YAMLit supports multiple scripts / languagesit supports Jinja2 templatingit has built-in support for executing code in Docker and on Kubernetes clustersit is completely serverless: all it requires for interacting with a K8s cluster is KubectlTaskSquirrel is a good replacement forinvokeandmakeeven if you don't use
the container-related features, but it is particularly well suited to data analysis
and deep learning workflows.Commandstasq --help-- display helptasq list-- list all commandstasq run command-- run a commandExampleSimple replacement for invoketasks:
    venv:
      - doc: build the virtual environment
      - script: |
          test -d venv || virtualenv venv
          venv/bin/pip3 install -U -r requirements.txt

    newversion:
      - doc: increase the patch version number
      - python: |
          version = map(int, open("VERSION").read().strip().split("."))
          version[-1] += 1
          with open("VERSION", "w") as stream:
            stream.write(".".join(map(str, version)))

    publish:
      - doc: publish to PyPI
      - script: twine uploadKubernetes Exampleparams:

  cluster: "mycluster"
  image: "mycompute"

tasks:

    image:
      docker_container: {{ image }}
        dockerfile: ./Docker
        push: tmbdev/{{ image }}
        context:
          - simple.key
          - scripts/start.sh

    kutest:
      - doc: start a job on K8s and wait for its completion
      - task: image
      - with_braceexpand: "{000..999}"
        param: shard
        tasks:
          - kubectl_apply: hello
            template_name: myjob
            params:
              id: hello-{{ shard }}
              script: |
                echo hello-{{ shard }};
                sleep 30
      - kubectl_wait:
        kind: jobs
        prefix: hello-
      - script: kubectl delete jobs --all

k8s_templates:

  myjob: |
    apiVersion: batch/v1
    kind: Job
    metadata:
      name: "{{ id }}"
    spec:
      template:
        spec:
          containers:
          - name: main
            image: "{{ image }}"
            command: ["/bin/bash", "-c", "{{ script }}"]
          restartPolicy: Never
      backoffLimit: 4StatusIt's pre-alpha.
Package: tasque
Command-line task handler with Trello integrationInstallationFrom the project root directory:$ python setup.py installOr from pip:$ pip install tasqueAfter install, run the install script which sets up your app key (required to run) and follow the directions:$ tasque-installUsageSimply run the shell:$ tasque-shellFor help on commands:> help
> help cd
> help ls
...Release Notes0.4.4:cd without args goes to rootcd /4/4/ no longer goes into /4/4/0pwd shows full name path (present working directory)fixed bug where cd Board wouldn’t work because it wasn’t lowercased0.4.3:In PyPI, with accurate README
bug: Will still display 0.4.2 in tasque-shell0.0.1:Project created
Package: tastier
TastyTasty -tabseparatedtables - a human-readable format for nested data serialization. The module allows to represent lists of objects with variable length in the following format:pairtriple
one1two2threetwo2three
three3four4five

six6seven7eightWhich corresponds to the following data (seeexamples/main.pyfor more details):((((TastyPair('one',1),),(TastyTriple('two',2,Quux('three')),TastyTriple('two',2,Quux('three')))),((TastyPair('three',3),),(TastyTriple('four',4,Quux('five')),))),(((TastyPair('six',6),),(TastyTriple('seven',7,Quux('eight')),)),))InstallationThe module doesn't require any additional dependencies. To install from pypi, run the following command:pipinstalltastyUsageDefault methods for dataset serialization and deserialization are implemented, so the module can be used as follows (see themain.pyscript in theexamplesfolder):fromdataclassesimportdataclassfromtastyimportCorpus,CellComponent,encode,pipe@dataclassclassTastyPair(CellComponent):foo:strbar:int@propertydefserialized(self):returnself._serialize(self.foo|pipe|encode,self.bar|pipe|str)@dataclassclassQuux:value:str@dataclassclassTastyTriple(CellComponent):baz:strqux:intquux:Quux@propertydefserialized(self):returnself._serialize(self.baz|pipe|encode,self.qux|pipe|str,self.quux.value|pipe|encode)written_corpus=Corpus(((((TastyPair('one',1),),(TastyTriple('two',2,Quux('three')),TastyTriple('two',2,Quux('three')))),((TastyPair('three',3),),(TastyTriple('four',4,Quux('five')),))),(((TastyPair('six',6),),(TastyTriple('seven',7,Quux('eight')),)),))).write('corpus.txt',header=('pair','triple'))read_corpus=Corpus.read('corpus.txt',parsers=(TastyPair,TastyTriple))assertread_corpus.data==written_corpus.data