Saravanan666/pypi-org huggingface dataset:
Package: workflow-uva
WorkflowWorkflow.json (Config file)A few things can or need to be added toworkflow.json:sequence, a list of assignments in orderFor example:"sequence": [ "AssignmentWeek1", "AssignmentWeek2", "AssignmentWeek3"]groups, a dict of groups of assignmentsIt should be a dict with as key the name of a group. The value of this dict is again a dict, with keys "assignments" and "weight". The key "assignments" should have as value a list of assignments and "weight" should have the relative weight as a number (for the whole group).For example:"groups": { "Assignments": { "assignments": [ "AssignmentWeek1", "AssignmentWeek2", "AssignmentWeek3", ], "weight": 20 }}resits, a dict of resits, and which assignments it replacesIt should be a dict with as keys the names of the resits, and as values the name of the assignment it replaces or a list of names.For example:"resits": { "ResitExam1": "Exam1", "OverallResit": [ "Exam1", "Exam2" ] }requirements, a list of minimal grades students have to have for assignment groups to pass the courseIt should be a list of dictionaries, with as keys "groups" and "min_grade". The value of groups can be a string or list and should refer to the name of a group. The value of min_grade should be a number.For example:"requirements": [ { "groups": "Theoretical_Assignments", "min_grade": 4.5 }, { "groups": ["Practical_Assignments", "Theoretical_Assignments"], "min_grade": 5.5 } ]FAQWhere to get an Canvas API key?See the Canvas API DocumentationWhere to store the Canvas API key?The Workflow notebook will ask for it. Otherwise, it can be changed in theworkflow.jsonfile.
Package: workflowy-assistant
WorkFlowy AssistantThis module allows you to add multiple bullets under a parent node.Installationpipinstallworkflowy-assistantThis module is dependent on Mozilla Firefox. Please install it if you don't have it:https://www.mozilla.org/nl/firefox/new/.Usagefromworkflowy_assistantimportWorkFlowyAssistant# Insert your WorkFlowy e-mail and password below.email='abc@demo.com'password='abcdef'# Change the path to your Firefox executable if necessary; use double backslash on Windows.pathToFirefox='C:\\Program Files\\Mozilla Firefox\\firefox.exe'# Start the WorkFlowyAssistantWF=WorkFlowyAssistant(email,password,pathToFirefox)# Replace this with the ID of the parent node. You can find it if you zoom in on the parent node and copy the id after# 'https://beta.workflowy.com/#/' in the address bar of your browser.parent_id='5e8b93132997'# Put all items you want to add in a list. Instead of calling the function for every item, it is better to generate the list first and# call the function once.listOfBullets=['A','B','C']# Add a list of new bullets under a parent node.WF.add_new_bullet(parent_id,listOfBullets)# Please close the process after all operations.WF.close_browser()
Package: workforce
workforceRun bash commands with python multiprocessing according to a csv file edgelist.Free software: MIT licenseDocumentation:https://workforce.readthedocs.io.InstallationInstallation can be done withpipinstallworkforceBuilding a workforce workflowTo build a workflow, simply run:workforceThen, paste the IP address into into your browsers address bar and build your program.Running workforceTo run a sample plan from workforce github project:workforceexample_plan.csvTo import and use in a python shell, use the following command:fromworkforce.workforceimportworkersteve=worker("<PLAN.CSV>")steve.run()The schema should be in the format of a csv with two columns. On the left and right column is the source and target command respectively (see example). Produces a logfile for each run.TestingTesting can be done within the github directory by running:python-munittest-vHistory0.1.0 (2021-01-16)First release on PyPI.
Package: workforce-async
WorkForce AsyncAsyncio WrapperInstall in your project$ pip install workforce-asynchttps://pypi.org/project/workforce-async/Select your python version$ poetry env use 3.7Install Dependencies$ poetry installRun example$ poetry run python examples/http_server.pyRun tests$ poetry run pytestInterfacesSnippets taken from testsJust run async functionsworkforce=WorkForce()asyncdeffoo():awaitasyncio.sleep(0.8)bar.count+=1f1=workforce.schedule(foo)Just run normal functions in another threaddeffoo():bar.count+=1f=workforce.schedule(foo)Function-based tasks.s()supports both normal and async functionsworkforce=WorkForce()defcallback(wf,task):bar.result=task.result()@workforce.task(callback=callback)asyncdefadd(a,b):returna+btask=add.s(4,5)()@workforce.task()asyncdefsleep(sec):awaitasyncio.sleep(sec)workforce.queue('channel1')queue=sleep.q(0.5)('channel1')Create queues of tasksworkforce=WorkForce()queue=workforce.queue('channel1')queue.put(foo())queue.put(foo())queue.put(foo())assertlen(queue)==3Class-based frameworkMake your own workforce that distributes workitems to WorkersclassCompany(WorkForce):defget_worker(self,workitem):try:worker_name={'NewFeature':'developer','Hire':'hr','EmployeeCounseling':'hr'}[type(workitem).__name__]returnsuper().get_worker(worker_name)exceptKeyError:raiseself.WorkerNotFoundcompany=Company()Make your own workers that perform tasks based on the workitem they receive@company.workerclassDeveloper(Worker):defhandle_workitem(self,workitem,*args,**kwargs):callback=getattr(workitem,'callback',None)# All tasks here run concurrentcoros=(getattr(self,task_name)(workitem)fortask_nameinworkitem.tasks)# Hack because asyncio.gather is not recognised as a coroutineasyncdefgather(*aws,**kwargs):returnawaitasyncio.gather(*aws,**kwargs)returngather(*coros),callbackasyncdefdesign(self,workitem):awaitasyncio.sleep(3)bar.arr.append('design')asyncdefcode(self,workitem):awaitasyncio.sleep(2)bar.arr.append('code')asyncdeftest(self,workitem):awaitasyncio.sleep(1)bar.arr.append('test')defmake_pr(self,task,wf):time.sleep(0.2)bar.arr.append('make_pr')company.schedule_workflow(NewFeature('New trendy ML'))
Package: workfrankomik
Тест задание для Франко.
Задача Pyhon - анализ успешности сотрудников. Автор проекта  Михаил Франко. Рабочая ОС-Linux Mint 19.1 Tessa. Основной скрипт пакета “worker.py” .
Пакет индексирован на PYPI как “workfrankomik”.
Пакет установить: “pip install workfrankomik”.
Запускается из консоли командой “worker”.
Package: workfront-sdk
SDK for managing Workfront tasksInstallationInstall viapip:$pipinstallworkfront-sdkInstall from source:$gitclonegit://github.com/BridgeMarketing/workfront-sdk.git$cdworkfront-sdk$pythonsetup.pyinstallExamplesHow to create a Workfront Service objectCreate the Workfront object and login:>>>fromworkfrontimportWorkfront>>>wf=Workfront("ay.caramba@thebridgecorp.com","1234wfpass")>>>wf.login()Then you can use it.How to create a user objectWith a Workfront service object, you can create a user by email or by id:>>>fromworkfront.objectsimportuser>>>user_by_email=user.from_email(wf,"ay.caramba@thebridgecorp.com")>>>user_by_id=user.from_id(wf,"<WORKFRONT_USER_ID>")You can then access some fields of the users:>>>printuser_by_email.wf_id# print the workfront id>>>printuser_by_email.name# print the name of the user>>>printuser_by_email.emailAddr# print the email of the userHow to create and interact with a TaskCreate the task by it’s workfront id and giving a Workfront service>>>fromworkfront.objects.taskimportWFTask>>>task=WFTask(wf,"<WF_TASK_ID>")Change the status of a task>>>fromworkfront.objects.statusimportWFTaskStatus>>>task.set_status(WFTaskStatus.in_progress)Assign a task to a different userOnce you have a WF user and a task you can:>>>fromworkfront.objectsimportuser>>>fromworkfront.objects.taskimportWFTask>>>user_by_email=user.from_email(wf,"ay.caramba@thebridgecorp.com")>>>task=WFTask(wf,"<WF_TASK_ID>")>>>task.assign_to_user(user_by_email)Get and set custom fieldsYou can use the methodsset_param_valuesandget_param_valuesto modify and access task custom fields.>>>task=WFTask(wf,"<WF_TASK_ID>")>>>task.get_param_values()>>>{"custom_field":"value","list_field":["value1","value2"]}>>>task.set_param_values({"custom_field":"other_value"})>>>task.get_param_values()>>>{"custom_field":"other_value","list_field":["value1","value2"]}How to use projectsYou can load a project from the id, and access the template id:>>>fromworkfront.objectsimportproject>>>p=project.WFProject(wf,"<WF_PROJECT_ID>")>>>project_template_id=p.get_template_id()With the template id, you can create another project:>>>fromworkfront.objectsimportproject>>>new_project=project.crt_from_template(wf,project_template_id,"NEW PROJECT NAME")>>>new_project.wf_id
Package: workfrontutil
workfront-utilSimple Python library that can be used to retrieve data from the workfront api.Easily return all data for any objCode from the workfront api.This library uses asyncio under the hood to batch requests and return a list of dicts.loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
api = WorkfrontAPI(objCode= 'hour')
hours = api.return_all()Control the results by configuring a workfront_util_settings.json file.{
  "workfront" : {
        "environment": "prod", 
        "api_version": "9.0", 
        "filters": {
            "hour" : {
                    "entryDate": "2019-07-01", 
                    "entryDate_Mod": "between", 
                    "entryDate_Range": "$$TODAYb"          
            }
        }, 
        "fields" : {
            "hour" : "*"

        }

}OR Add your filter options and field selections inline if preferred.loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
settings = ENVSettings()

filter_option = {
                    "entryDate": "2019-07-01", 
                    "entryDate_Mod": "between", 
                    "entryDate_Range": "$$TODAYb"          
            }

api = WorkfrontAPI(
    version = settings.api_version,
    env= settings.env ,
    fields = "*"
    filter_option= filter_option, 
    objCode= 'hour')

hours = api.return_all()Return a flat pandas dataframe by passing flat=truehours = api.return_all(flat=True)Run a CLIUsage: workfrontutil [OPTIONS]

Options:
  --make_config TEXT  Generate config file
  --config_path TEXT  location of config file
  --objCode TEXT      Target objCode
  --fields TEXT       Target objCode fields to return
  --filter TEXT       Target objCode filter to use
  --edit_config TEXT  Update Config file
  --save_obj TEXT     Save all objCode data to DB
  --help              Show this message and exit.#Getting StartedInstall the packagepip install workforntutilRun from the cli or import into your scriptfrom workfrontutil import WorkfrontAPI
Package: working-calendar
Working CalendarDescriptionClassWorkingCalendaris utility for operate with working days.Current version0.0.1 (2018-07-13)Installationpipinstallworking_calendarExamplefromdatetimeimportdatefromworking_calendarimportWorkingCalendarif__name__=='__main__':wc=WorkingCalendar()holidays=[date(2018,2,23),date(2018,3,8),date(2018,3,9),]additional_working_days=[date(2018,3,10),]not_standard_working_day=(date(2018,3,10),240)# 240 min = 4 hourswc.extend_holidays(holidays)wc.extend_working_days(additional_working_days)wc.update_not_standard_working_day(not_standard_working_day[0],not_standard_working_day[1])print(wc.count_working_days_between(date(2018,3,1),date(2018,3,12)))# 7 working daysprint(wc.count_working_days_in_year(2018))# 259 working daysprint(wc.count_working_days_in_month(2018,2))# 19 working daysprint(wc.count_working_minutes_between(date(2018,3,1),date(2018,3,12)))# 3120 minutesprint(wc.count_working_minutes_in_year(2018))# 124080 minutesprint(wc.count_working_minutes_in_month(2018,2))# 9120 minutesprint(wc.count_working_hours_between(date(2018,3,1),date(2018,3,12)))# 52.0 hoursprint(wc.count_working_hours_in_year(2018))# 2068.0 hoursprint(wc.count_working_hours_in_month(2018,2))# 152.0 hoursprint(wc.get_next_working_day(date(2018,3,7)))# 2018-03-10print(wc.skip_working_days(date(2018,3,10),10))# 2018-03-23
Package: workingdays
workingdays Package:python package of date functions/utilities centered around workday calculations.dateCleanupAll of the "workingday" functions first pass through the "dateCleanup" utility before executing. The dateCleanup converts a string to datetime (y, m, d, h, M, s). It can convert alpha numeric, German date formats, timestamps with seperators (":"" or "-"), timestamps without spaces between date and time ('YYYY-MM-DDhh:mm:ss' to 'YYYY-MM-DD hh:mm:ss' or 'YYYY:MM:DDhh:mm:ss' to 'YYYY-MM-DD hh:mm:ss'), or datetime with no seperators.The "datevalue" is expected to be Type string unless epoch=True, Then datevalue expected to be Type Int.workdayReturns a string ("%Y%m%d") of the workingday based off the offset. Optionial Holidays can be passed.workdayStartReturns a string ("%Y%m%d") of the workingstart based off the offset. Optionial Holidays can be passed.compareWorkingdaysReturns the days (Int) between two working dates. Optionial Holidays can be passed.lastWorkdayofMonthReturns a string ("%Y%m%d") of the last workingday of the month. . Optionial Holidays can be passed.lastWorkdayofQtrReturns a string ("%Y%m%d") of the lastWorkdayofQtr. Optionial Holidays can be passed. Default qtrs are based off "Calendar Years", but Optional kwarg can change the Qtr "Months" (Can be a list or dict).example:quarters={"Q1":["Nov","Dec","Jan"],"Q2":["Feb","Mar","Apr"],"Q3":["May","Jun","Jul"],"Q4":["Aug","Sep","Oct"]}lastWorkdayofQtr('20200213',key=quarters)Results'20200430'lastDayofMonthReturns a string ("%Y%m%d") of the lastDayofMonth.
Package: workingless
Workingless is a lib for holidays calculations. Currently it supports Colombia
and Mexico (beta) holidays.See full documentation.UsageWorkingless has four methods for the countries supported, they are:get_holidays_from_year,is_holiday,is_working_dayandget_next_working_day.Example usage:importdatetimefromworkinglessimportcountriescolombia=countries.COL()holidays=colombia.get_holidays_from_year(year=2020)print(type(holidays))# <class 'generator'>print(list(holidays))# result:# [#     datetime.date(2020, 1, 1),#     datetime.date(2020, 1, 6),#     datetime.date(2020, 3, 23),#     datetime.date(2020, 4, 5),#     datetime.date(2020, 4, 9),#     datetime.date(2020, 4, 10),#     datetime.date(2020, 4, 12),#     datetime.date(2020, 5, 1),#     datetime.date(2020, 5, 25),#     datetime.date(2020, 6, 15),#     datetime.date(2020, 6, 22),#     datetime.date(2020, 6, 29),#     datetime.date(2020, 7, 20),#     datetime.date(2020, 8, 7),#     datetime.date(2020, 8, 17),#     datetime.date(2020, 10, 12),#     datetime.date(2020, 11, 2),#     datetime.date(2020, 11, 16),#     datetime.date(2020, 12, 8),#     datetime.date(2020, 12, 25)# ]colombia.is_holiday(date=datetime.date(2020,1,1))# Truecolombia.is_working_day(datetime.date(2020,1,1)# Falsecolombia.get_next_working_day(datetime.date(2020,1,1)# datetime.date(2020, 1, 2)LicenseDistributed under the terms of the GPLv3 license.Seelicense.
Package: work-journal-cli
Work Journal CLI ToolSome people consider it's a good practice to write work journals on a daily basis, to remind what you have achieved every day. In this CLI tool, we utitlize the Linux built-in tool crontab and set a schedule, to create a work journal in markdown format automatically.The idea is to create a text file and pop up an editor window every day before leaving work, make it effortless to maintain the habit.Linux/UNIX are theoretically all supported if you have these programs:whichcrontabpython/python3These programs should be installed for the user and can be invoked through command line. Otherwise, the tool may has unpredictable behaviors.Installpip install work-journal-cliUsageUsage: work-journal [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  config  Show configurations.
  info    Show the details of the scheduled info.
  new     Create a cron job for scheduling a journal.
  remove  Remove the previously created work-journal cron job.
  run     Make a journal and start writing immediately.To schedule a new journal, runwork-journal newThe terminal will prompt you to input the required fields.$ work-journal new
Journal name [#]: test
Schedule: 0 18 * * 1,2,3,4,5
Folder path for saving journals [/home/user/work_journals]: 
Journal is scheduled at At 06:00 PM, only on Monday, Tuesday, Wednesday, Thursday, and Friday with name test, and will be saved at /home/user/work_journals.You need to pass acron expressionfor the schedule. In the example, the expression means it's scheduled to pop out the editor every workday at 6pm. You can specify the directory you want the journals to be saved.You can also assign the text editor you preferred, using the following line:work-journal config --set-editor geditIn the example,geditis the command for calling the GNOME GUI text editor.
Package: worklab
Worklab: a wheelchair biomechanics mini-packageEssential data analysis and (pre-)processing scripts used in projects
researching the LodeEssedawheelchair ergometer in the worklab at the University Medical Centre
Groningen. Includes all basic io and calculations for the equipment in
the worklab, which means:Measurement wheel (Optipush and SMARTwheel) data processingErgometer (Esseda) data processingPush-by-push analysisSpirometer (COSMED) data processingIMU (NGIMU, XIMU3 and MoveSense) data processingKinematics (Optotrak/OptiTrack) data processingMore(?)DocumentationFor more detailed documentation you can look at thedocs.PrerequisitesYou need a valid version of Python 3.6+ (because f-strings). This
project has a bunch of dependencies forreasons, so you will also need
the scipy ecosystem , which you probably already have.InstallingYou can install this package with pip:pip install worklabExamplesYou can find some Jupyter Notebook exampleshere.Reporting errorsIf you find an error or mistake, which entirely possible, please contact
me or submit an issue through this page.CitingIf you want to refer to this package please use this DOI:
10.5281/zenodo.8362962, or cite:Rick de Klerk, Thomas Rietveld, Rowie Janssen, & Jelmer Braaksma. (2023). Worklab: a wheelchair biomechanics mini-package. Zenodo.https://doi.org/10.5281/zenodo.8362963
Package: worklog-cli
WorklogA personal time-tracking system.Worklog provides a simple mechanism for logging in and out of accounts which are
billed for time elapsed. The author, a professor, uses it to bill time to
various commitments. Some really are paid hourly (e.g. consulting), but most are
not. The primary use is to track and analyze how time is spent.InstallationAssuming you have a Python 3 environment installed, Worklog can be installed by
runningpip install worklog-cli. You will also need to installhledger.UsageIf you are just getting started, make a list of the ways you spend time (or at
least those you want to track). If you want to nest accounts, separate them with
colons. For example, here are a few of my top-level accounts:academic:code          
 academic:conferences   
 academic:outreach      
 academic:overhead      
 academic:reading       
 academic:research      
 academic:service       
 personal:correspondence
 personal:overhead      
 personal:planningNow runwork. You will be asked to log in to an account, and then to enter a
description of the work you are doing. (Accounts can be auto-completed using tab.)$ work
Log in to account: academic:code
Work description: Writing the Worklog README
[Enter to log out]Press enter when you finish that work session, and you will be prompted to log
in to another account. Press Control + C when you are finished. That's it!CommandsThe base command iswork, which enters a loop for logging in and out of
accounts. There are several other modes available:work --reportshows recent work statistics and quits.work --editopens the current worklog for editing. Sometimes I find I need to
edit the worklog to add a work session or change times (for example, if I forgot
to log out before going to bed).work --archivearchives the current worklog at the given filename and starts a
new worklog. If you plan to log your work over time, I suggest you keep your log
files in version control.ConfigurationWorklog relies on a simple configuration file which will be automatically
created at~/.worklog/worklog.configby default.[WORKLOG]
logfile = /Users/me/.worklog/worklog.timeclock
editor = vimFormatsWorklog relies onhledger, a Haskell implementation ofledger, for double-entry bookkeeping which
regards time as a resource just like money. One main design goal of this system
is ahuman-readable ledger formatwhich
can also be parsed by scripts.
Package: worklogi
How to install:Just runpip install worklogi.How to use:You can combine this withmand git hooks to
automatically log your work.You can create the following hooks:post-checkout#!/bin/fishechocheckout|worklogiadd-entry(mgitbranch)>/dev/nullpost-commit#!/bin/fishgitlog-1--oneline--format=%s|sed's/^.*: //'|worklogiadd-entry(mgitbranch)How to browse:Just runworklogi browse
Package: worklogmd
A plain text system for keeping track of how long you work.The format looks like this:# Week 1

## 13 Jun 2016
- Start @ 10:00
- Lunch 12:00-13:00
- Stop @ 18:00

- Begin new job
- Set up computer

## 14 Jun 2016
- Start @ 8:30
- Lunch 12:00-12:30
- Stop @ 17:00

- Fix calendar display error

# Week 2

## 20 Jun 2016
- Start @ 7:30
- Lunch 11:00-11:30
- Stop @ 16:00

- Respond to code reviewInstallationpip3installworklogmdYou’ll probably also want thewlbash command, which you can get by runningprintWorklogFunctionand appending the output to your Bash configuration
(.bashrcor.bash_profile, depending on OS).UsageWhen you want to interact with your Worklog, typewland modify the file.A simple tool which will report on the number of hours you’ve worked each day
(processWorklog worklog.md) or each week (processWorklog worklog.md -w).
Package: work-monitor
Work-MonitorI create this project to monitor my work environment by laptop camera.This project will capture photo intervally and combined them into a video.UsageGet help.python3-mmonitorhelpStart the monitor server.python3-mmonitorserverAs a client, you can control the monitor server by sending commands to the server.# Stop the monitor server.python3-mmonitorstop# Get the monitor server configpython3-mmonitorget_configRequirementsPython 3.6+OpenCV 3.4+Numpy 1.16+Installationpip3installwork-monitor
Package: workon-cli
WORK ONA simple project manager for conda, windows 10 and vscodeInstallationpipinstallworkon-cliYou must have anaconda3 on your path and vscodefunctionWorkon(){python-mworkon$args}Add this function to $PROFILE file using powershellUsagepythonworkon--help
pythonworkonshow
pythonworkonworkonPROJECT
pythonworkoncreatePROJECT-dPATH-pPYTHON
pythonworkonremovePROJECTContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.DeveloperJesus Alan Hernandez GalvanLicenseMIT
Package: workonflow-bot-client
Установкаpip install workonflow-bot-clientКак использоватьimport sys

from workonflow_bot_client.main import connect, Comment, Thread, Stream

def callback(*args):
  return print('Get message from thread.create ---> ', args)


def bot():
    global socket
    socket = connect(creds={'email': 'email@bot.com', 'password': 'password'})

    teamId = '5af002sssc890f001b2b742f'
    query = {'title': 'New task', 'streamId': '5b20cae1234561001ed4e61e', 'status': '5b20cae3458202112ed4e61f'}

    thread = Thread()

    thread.create(socket, teamId, query, callback)
    socket.wait()


if __name__ == "__main__":
    try:
        bot()
    except KeyboardInterrupt:
        print('Killed by user')
        print(socket.disconnect())
        sys.exit(0)ЗапускWS_ENDPOINT=https://ws-bots.teslatele.com python3 nameFile.pyРеализованоcomment(create, read, on_created, count)thread(create, read, read_description, on_created, on_status_updated, on_budget_updated, on_deadline_updated, set_budget, set_deadline, set_description, set_priority, set_responsible, set_status, set_stream, set_title, set_add_customers, remove_customers)stream(create, read, delete, on_user_deleted, on_user_set, set_admin, set_name, set_description, set_user)Полная документация:https://github.com/workonflow/bot-client-docs