Saravanan666/pypi-org huggingface dataset:
Package: cowfish
cowfishA useful asynchronous library that is built on top of aiobotocoreUsagepython -m cowfish.sqsprocesser queue_name region_nameExamplesfirehose=Firehose(name,worker_params={'maxsize':1000})asyncdefgo():awaitfirehose.put({'a':3,'b':4})...awaitfirehose.stop()For dynamodbuseaioboto3instead.
Package: cowherd
CowHerdCowHerd is a partially-observed reinforcement learning environment, where the
player walks around an area and is rewarded for milking cows. The cows try to
escape and the player can place fences to help capture them. The implementation
of CowHerd is based on theCrafterenvironment.Play YourselfYou can play the game yourself with an interactive window and keyboard input.
The mapping from keys to actions, health level, and inventory state are printed
to the terminal.# Install with GUIpip3install'cowherd[gui]'# Start the gamecowherd# Alternative way to start the gamepython3-mcowherd.run_guiThe following optional command line flags are available:FlagDefaultDescription--window <width> <height>800 800Window size in pixels, used as width and height.--fps <integer>5How many times to update the environment per second.--record <filename>.mp4NoneRecord a video of the trajectory.--num_cows3The number of cows in the environment.--view <width> <height>7 7The layout size in cells; determines view distance.--length <integer>NoneTime limit for the episode.--seed <integer>NoneDetermines world generation and creatures.Training AgentsInstallation:pip3 install -U cowherdThe environment follows theOpenAI Gyminterface:importcowherdenv=cowherd.Env(seed=0)obs=env.reset()assertobs.shape==(64,64,3)done=Falsewhilenotdone:action=env.action_space.sample()obs,reward,done,info=env.step(action)Environment DetailsRewardA reward of +1 is given every time the player milks one of the cows.TerminationEpisodes terminate after 1000 steps.Observation SpaceEach observation is an RGB image that shows a local view of the world around
the player, as well as the inventory state of the agent.Action SpaceThe action space is categorical. Each action is an integer index representing
one of the possible actions:IntegerNameDescription0noopDo nothing.1move_leftWalk to the left.2move_rightWalk to the right.3move_upWalk upwards.4move_downWalk downwards.5doPick up a placed fence or milk a cow.6place_fencePlace a fence in front of the player.QuestionsPleaseopen an issueon Github.
Package: cowin-app-services
Cowin TrackerPython API wrapper for CoWin, to help citizens register themselves for the vaccination drive by booking an appointment at the nearby vaccination centresThis wrapper is meant to enable folks to build their own versions of a system to lookup for vaccine availablity either
in a district or in a particular pin code.Installpip install taranvir-cowin-api-servicesUsageThe wrapper currently covers four endpoints used by the CoWin portal specified below.Initializefromcowin_apiimportCoWinAPIcowin=CoWinAPI()Get all the available statesReturns the list of states in which vaccine drive is being conducted. This also returns thestate_idwhich would be
required in the subsequent requests.fromcowin_apiimportCoWinAPIcowin=CoWinAPI()states=cowin.get_states()print(states)Get all the available districtsReturns the list of districts in a particular states in which vaccine drive is being conducted. This also returns
thedistrict_idwhich would be required in the subsequent requests.In this method, you would need to pass thestate_idretrieved from the previous method.fromcowin_apiimportCoWinAPIstate_id='<give state_id here>'cowin=CoWinAPI()districts=cowin.get_districts(state_id)print(districts)Get all the centers available using the district_idUse this method to lookup for centers based on adistrict_idor a list ofdistrict_ids. This method is broader than
searching by pin code as it covers the whole district.In this method, you would need to pass thedistrict_idretrieved from the previous methods. By default, the method
looks-up for slots with today's date. For any other dates pass the date in DD-MM-YYYY format.fromcowin_apiimportCoWinAPIdistrict_id='<give the district_id here>'date='<Give the date here>'# Optional. Takes today's date by defaultmin_age_limit=18# Optional. By default returns centers without filtering by min_age_limitcowin=CoWinAPI()available_centers=cowin.get_availability_by_district(district_id,date,min_age_limit)print(available_centers)Get all the available centers using a pin codeUse this method to lookup for centers based on apin_codeor a list ofpin_codes. By default, the method looks-up
for slots with today's date. For any other dates pass the date in DD-MM-YYYY format.fromcowin_apiimportCoWinAPIpin_code="<give pincode here>"date='<give date here>'# Optional. Default value is today's datemin_age_limit=18# Optional. By default returns centers without filtering by min_age_limitcowin=CoWinAPI()available_centers=cowin.get_availability_by_pincode(pin_code,date,min_age_limit)print(available_centers)ContributionsContributions are always welcome!Feel free to modify according to your requirement.License:MIT License
Package: cowin-async
Cowin APIPython package to interact withCOWIN Public APIFeaturesSupports both Synchronous and Asynchronous modes.95% test coverage with mocking API responses.Get list of statesGet list of districts for a stateGet vaccine centers with sessions by pincode and dateGenerate and Verify OTPDownload CertificatesExample:For API response payload samples visit theAPI portal.# blocking synchronous clientfromcowinimportCowinclient=Cowin()states=client.get_states()districts=client.get_districts(state_id=4)# below function accepts optional datetime.date object# by default current date is usedvaccine_sessions=client.get_available_sessions_by_pincode(pincode=605001)# get OTP to mobile numberresponse=client.get_otp(mobile='9876543210')txn_id=response['txnId']# verify OTP and receive tokenresponse=client.confirm_otp(txn_id=txn_id,otp=123456)token=response['token']# download certificate by beneficiary reference number# Note: ServerError exception will be raised when response content is not pdfcert_content=client.get_certificate(token,beneficiary_id='xxxxxxxxxxxx')# save certificate content to diskwithopen('certificate.pdf','wb')ascert_file:cert_file.write(cert_content)# non-blocking async clientfromcowinimportAsyncCowinasync_client=AsyncCowin()states=awaitasync_client.get_stateS()districts=awaitasync_client.get_districts(state_id=4)vaccine_sessions=awaitasync_client.get_available_sessions_by_pincode(pincode='605001')# get OTP to mobile numberresponse=awaitasync_client.get_otp(mobile='9876543210')txn_id=response['txnId']# verify OTP and receive tokenresponse=awaitasync_client.confirm_otp(txn_id=txn_id,otp='123456')token=response['token']# download certificate by beneficiary reference number# Note: ServerError exception will be raised when response content is not pdfcert_content=awaitasync_client.get_certificate(token,beneficiary_id='xxxxxxxxxxxx')# save certificate content to diskwithopen('certificate.pdf','wb')ascert_file:cert_file.write(cert_content)ContributionsIssues and pull requests are welcome. Feel free to improve the package.License:LGPL v3.0
Package: cowin-vaccine-api
Cowin Vaccine TrackerPython API wrapper for CoWin, for the vaccination drive by booking an appointment at the nearby vaccination centresThis wrapper supports Find vaccine availability by Pincode, District and booking of apointments is on the way.Vacine Notifiera Telegram Bot which can be used to check vaccine availability status and recieve notification when registered for vaccine availability.Installationpip install cowin-vaccine-apiUsageGet Statesfrom cowin import CoWinAPI

cowin = CoWinAPI()

states = cowin.get_states()
print(states)Get Districtsfrom cowin import CoWinAPI
state_id=31
cowin = CoWinAPI()

districts = cowin.get_districts(state_id)
print(districts)Availability By Pin for a dayfrom cowin import CoWinAPI
pin_code = "642122"

cowin = CoWinAPI()
#pass date in method to get specific date or today's date is taken
available_centers = cowin.get_availability_by_pincode(pin_code)
print(available_centers)Availability By DistrictID for a dayfrom cowin import CoWinAPI
pin_code = "642122"

cowin = CoWinAPI()
#pass date in method to get specific date or today's date is taken
available_centers = cowin.get_availability_by_district(pin_code)
print(available_centers)Availability By Pincode for a weekfrom cowin import CoWinAPI
pin_code = "642122"

cowin = CoWinAPI()
#pass date in method to get specific date or today's date is taken
available_centers = cowin.get_availability_by_pincode(pin_code)
print(available_centers)Availability By DistrictID for a weekfrom cowin import CoWinAPI
pin_code = "642122"

cowin = CoWinAPI()
#pass date in method to get specific date or today's date is taken
available_centers = cowin.get_availability_by_pincode(pin_code)
print(available_centers)License© 2021 KishoreThis repository is licensed under the MIT license. See LICENSE for details.
Package: cowley-sro-parameters
Cowley short range order parameter modifierThis repository contains an OVITO modifier that calculates the Cowley short range order parameters from a precomputed bond topology.For use in a standalone Python script:pipinstallcowley_sro_parametersThis code is intended to also interface with OVITO Pro, but this feature has not been tested. With OVITO Pro, you can install this modifier into your OVITO interface with:ovitos-mpipinstall--usercowley_sro_parametersAn example of this repository used in a standalone script is in theexample/directory. This package is a derivative of a larger work on vacancy concentration. If you find this package useful, please citeour work on vacancy concentrationas well as the repository itself:@misc{jeffries_sro_parameters,author={Jacob Jeffries},title={Cowley SRO Parameters Modifier},howpublished={\url{https://github.com/jwjeffr/cowley_sro_parameters}},year={2023}}AcknowledgementsThe  work  was  supported  by  the  grant  DE-SC0022980 funded by the U.S. Department of Energy,  Office of Science.
Package: co-words
co-wordsWhat is it?co-words, or co-occurring words, is a Python package enabling counting of co-occuring words in a set of documents.co-wordsallows users to find which documents share words, which words co-occur together the most often, calculate co-occurrence counts over time, and several other text analysis components.Dependenciesscikit-learn0.18 or highernltk3.4 or higherpandas0.23 or higherInstallation# PyPi
pip install co-words
Package: coworker
coworkerGeneric worker that performs concurrent tasks using coroutine.Quick Start TutorialDefine how a task is performed –do_tasktakes a single input and optionally returns a result:fromcoworkerimportCoworkerclassSquareWorker(Coworker):asyncdefdo_task(self,task):# Task can be anything, such as a tuple with a callable and args.returntask*taskNow let’s do some work:importasyncioasyncdefbackground_worker_example():worker=SquareWorker(max_concurrency=5)# Only 5 tasks will run concurrently. Defalts to 10# Single taskresult=awaitworker.do(2)print(result)# result = 4# Mulitiple tasks -- get all results after everything is donetasks=list(range(100))results=awaitworker.do(tasks)print(results)# results = [0, 1, 4, 9, ...]# Mulitiple tasks -- get first completedtasks=list(range(10))forresultinworker.do(tasks,as_iterator=True):print(awaitresult)# results = 0, 1, 4, 9, ...# Run async usage exampleasyncio.run(background_worker_example())Besidesmax_concurrency, you can also pass the following params to Coworker:sliding_windowto use sliding window or tumbling window when processing the tasks concurrently. Defaults to True.do_taskfor a callable to do the task instead of having to sub-class. E.g. Coworker(do_task=lamdba x: x * x)Links & Contact InfoPyPI Package:https://pypi.python.org/pypi/coworkerGitHub Source:https://github.com/maxzheng/coworkerReport Issues/Bugs:https://github.com/maxzheng/coworker/issuesConnect:https://www.linkedin.com/in/maxzhengContact: maxzheng.os @t gmail.com
Package: coworks
CoWorks is a unified serverless microservices framework based on AWS technologies
(API Gateway,AWS Lambda),
the Flask framework (Flask/Click) and
theAirflowplatform.The aim of this project is to offer a very simplified experience of microservices. For such purpose, we divided the
CoWorks framework in two levels:Small technical microserviceTechMicroserviceare each composed of simple pythonFlaskapplication and deployed as a serverless Lambda. EachTechMicroServiceis anatomic componentoratomic microservice. These microservices may be called synchronously or asynchronously.Functional business servicebizarecomposite business services, which areAirflowDAGs providing orchestration of atomic microservices or components (aka:TechMicroService).To get started with CoWorks, first follow theInstallation Guide. Then you can get a quickstart onTechMicroService Quickstart.
Once familiar withTechMicroService, you can continue withBizMicroService Quickstart.Data modelThe data model shared between those services may be structured withpydanticand using the JSON:API specification.
You can install this data protocol for CoWorks with: pip install coworks[jsonapi-sqlalchemy].DocumentationSetup and installation:InstallationComplete reference guide:Documentation.Samples:layers : Get available CoWorks lambda layers:CoWorks layers.website : Very simple website done as a simple microservice:Website.ReadFAQfor other information.ContributingWe work hard to provide a high-quality and useful framework, and we greatly value
feedback and contributions from our community. Whether it’s a new feature,
correction, or additional documentation, we welcome your pull requests. Please
submit anyissuesorpull requeststhrough GitHub.Related ProjectsFlask- Lightweight WSGI web application framework (Donate to Pallets).Airflow- A platform to programmatically author, schedule, and monitor workflows.Terraform- Infrastructure configuration management tool.Pydantic- Data validation using Python type hints.Some ideas guiding this project were found in :Flask-ClassyPyDANJA
Package: cowsay
IntroductionA python API / Command-line tool for the famous linuxcowsay.Take a look atCHANGELOG.mdfor the changes.Brief Historycowsayfor GNU/Linux was initially written in perl by Tony Monroe. More infohere.Installationpip install cowsayAPI Usage>>> import cowsay>>> cowsay.cow('Hello World')___________| Hello World |===========\\^__^(oo)\_______(__)\       )\/\||----w |||     ||>>> print(cowsay.get_output_string('cow', 'Hello World'))___________| Hello World |===========\\^__^(oo)\_______(__)\       )\/\||----w |||     ||>>> cowsay.cow('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris blandit rhoncus nibh. Mauris mi mauris, molestie vel metus sit amet, aliquam vulputate nibh.')_________________________________________________/                                                 \| Lorem ipsum dolor sit amet, consectetur adipiscin || g elit. Mauris blandit rhoncus nibh. Mauris mi ma || uris, molestie vel metus sit amet, aliquam vulput || ate nibh.                                         |\                                                 /=================================================\\^__^(oo)\_______(__)\       )\/\||----w |||     ||>>> my_fish = r'''\\/`·.¸/¸...¸`:·¸.·´  ¸   `·.¸.·´): © ):´;      ¸  {`·.¸ `·  ¸.·´\`·¸)`\\´´\¸.·´'''>>> cowsay.draw('Sharks are my best friend', my_fish)_________________________| Sharks are my best friend |=========================\\/`·.¸/¸...¸`:·¸.·´  ¸   `·.¸.·´): © ):´;      ¸  {`·.¸ `·  ¸.·´\`·¸)`\\´´\¸.·´Command Line Usage$cowsay-t"Hello World"___________| Hello World |===========\\^__^(oo)\_______(__)\       )\/\||----w |||     ||$cowsay-t"Hello World"-c"tux"___________| Hello World |===========\\\.--.|o_o ||:_/ |//   \ \(|     | )/'\_   _/`\\___)=(___/More Characters>>> cowsay.char_names['beavis', 'cheese', 'cow', 'daemon', 'dragon', 'fox', 'ghostbusters', 'kitty','meow', 'miki', 'milk', 'octopus', 'pig', 'stegosaurus', 'stimpy', 'trex','turkey', 'turtle', 'tux']>>> cowsay.char_funcs{'beavis': <function func at 0x104b734c0>,'cheese': <function func at 0x104d285e0>,...'tux': <function func at 0x104d28f70>}>>> len(cowsay.chars)19ContributingGuide:CONTRIBUTING.md
Package: cowsay-py
cowsay-py__________________
< srsly dude, why? >
 ------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||Please note that this is a new package and there will be bugs. Please report them to theissue page.Cowsay is a configurable talking cow, originally written in Perl byTony MonroeThis project uses code fromcowsay2, the node.js moderenized version of cowsay.Installing# Linux/macOSpython3-mpipinstall-Ucowsay-py# Windowspy-3-mpipinstall-Ucowsay-pyUsage (Coming Soon!)cowsay Python FTW!orcowthink python is coolIt acts in the same way as the original cowsay, so consultcowsay(1)or runcowsay -h________
< indeed >
 --------
    \
     \
                                   .::!!!!!!!:.
  .!!!!!:.                        .:!!!!!!!!!!!!
  ~~~~!!!!!!.                 .:!!!!!!!!!UWWW$$$
      :$$NWX!!:           .:!!!!!!XUWW$$$$$$$$$P
      $$$$$##WX!:      .<!!!!UW$$$$"  $$$$$$$$#
      $$$$$  $$$UX   :!!UW$$$$$$$$$   4$$$$$*
      ^$$$B  $$$$\     $$$$$$$$$$$$   d$$R"
        "*$bd$$$$      '*$$$$$$$$$$$o+#"
             """"          """""""Quick Exampleimportcowsayprint(cowsay.say('Moooooo!',eyes="oO",tongue="U"))# or cowsay.think()___________
< Moooooo!  >
 -----------
           \   ^__^
            \  (oO)\_______
               (__)\       )\/\
                U ||----w |
                  ||     ||getting a list of cow names:fromcowsayimportcowsprint(dir(cows))Function optionssay(text:'hello',cow:cowsay.Cow,# Template for a cow, get inspiration from `./cows`eyes:'oo',# Select the appearance of the cow's eyes, equivalent to cowsay -etongue:'L|',# The tongue is configurable similarly to the eyes through -T and tongue_string, equivalent to cowsay -Twrap:True,# Specifies if the given message will be word-wrapped. equivalent to cowsay -nwrapLength:40,# Specifies roughly where the message should be wrapped. equivalent to cowsay -Wmode:'b',# One of 	"b", "d", "g", "p", "s", "t", "w", "y")
Package: cow-transfer
cow_transfer安装pip install cow_transfer使用文件下载一个完整的奶牛快传的文章下载链接就像这样：https://xiyoucloud.cowtransfer.com/s/9f9b7c098b9049你可以根据文件的 id 来下载文件 9f9b7c098b9049。cow download -u 9f9b7c098b9049Usage: cow download [OPTIONS]

Options:
  -u, --urlcode TEXT     urlcode for download file  [required]       
  -t, --threads INTEGER  set threads for download file  [default: 20]
  -p, --path PATH        set save path for download file
  -c, --cookie_path PATH cookie file path
  --help                 Show this message and exit.文件上传Usage: cow upload [OPTIONS]

  CowTransfer - 奶牛快传

Options:
  --authorization TEXT  用户 authorization  [required]
  --remember_mev2 TEXT  用户 remember-mev2  [required]
  --upload_path TEXT    待上传文件或目录路径  [required]
  --folder_name TEXT    文件夹名称
  --title TEXT          传输标题
  --message TEXT        传输描述
  --valid_days INTEGER  传输有效期（天）  [default: 7]
  --chunk_size INTEGER  分块大小（字节）  [default: 2097152]
  --threads INTEGER     上传并发数  [default: 5]
  --help                Show this message and exit.默认情况下会开启 20 个线程对文件进行下载，这会大大加快下载速度，不过下载速度还受到网络带宽的限制，即下载速度最快不会超过网络带宽。打包源码# 安装依赖
pip install wheel
# 打包
python setup.py bdist_wheel sdist

# 上传打包后的 python 包到 https://pypi.org
twine upload dist/*
Package: coxbuild
Coxbuild is a tiny python-script-based build automation tool, an alternative to make, psake and so on.DocumentsReferencesTest Coverage ReportExtension GallerySupported features:TaskDependencyPre / Post conditionLifecycle hooksSetup / TeardownBefore / AfterEvent-based build as a long-run serviceMultiple schema sourcesFilefile://Urlurl://Source codesrc://Modulemod://Galleryext://Extensions:PythonShellGitNode.js.NETGradleInstallpipinstallcoxbuildTry# Versioncoxbuild--version# Hello Worldcb-uhttps://raw.githubusercontent.com/StardustDL/coxbuild/master/demo/hello.py

cb-ehello# Life Cyclecb-uhttps://cdn.jsdelivr.net/gh/StardustDL/coxbuild@master/demo/lifecycle.py# Event-based buildcb-uhttps://cdn.jsdelivr.net/gh/StardustDL/coxbuild@master/demo/event.py# Interactivecb-isrc://interativeGetting StartedCoxbuild build itself by itself, seeherefor details.Write Schema (buildcox.py)@taskdefpre():print("pre task")@depend(pre)@taskdefdefault():passRuncoxbuild# or a shortcutcbExtensionsWe provide a few extensions with coxbuild release package, incoxbuild.extensionsmodule. We also provide a gallery of extensions inexts.Visitherefor more details.
Package: coxeter3-sage
Coxeter 3: SageThis package provides a wrapper forCoxeter 3, written by Fokko Ducloux, which supports arbitrary coxeter groups.
In particular, this package allows the user to generate intervals in Bruhat order and Kazhdan-Lusztig polynomials usingcoxeter.This is a package that is intended for use withSageMathon top of Python 3.Why this packageAlthoughSageMathsupports coxeter 3, this feature only seems to be available for the finite and affine irreducible Coxeter groups.This package offers a small wrapper around Coxeter, in fact, this it only provides one small class with 3 methods.How to InstallRequirements:this package requires SageMath to be installed with Python 3; anda compiled (not necesarily installed) copy ofCoxeter 3.To install this simply runpip3installcoxeter3-sageDocumentationCreating an instanceCreating an instance ofCoxeter3has the following signature.Coxeter3(W,q,command,timeout)whereWis a coxeter group(required);qis the indeterminent of the Kazhdan–Lusztig polynomials(required);commandis the path to the executable for coxeter 3(optional; defaults to 'coxeter'); andtimeoutis a timeout, in seconds, to wait for responces from coxeter 3,Noneif no timeout(optional; defaults toNone).The returned object with handle an instance of coxeter usingpexpect.Notice here thatcommandcan be the path to a file, for example"./coxeter3/bin/coxeter".MethodsFor the documentation of the methods, please see the examples below.Example UsageWe now give some basic usage examples as follows.Starting an instanceWe can create an instance ofCoxeter3as follows.# create an aribtrary Coxeter group `W`M=CoxeterMatrix([[1,4,4],[4,1,4],[4,4,1]])W=CoxeterGroup(M)s1,s2,s3=W.gens()# import the `Coxeter3` classfromcoxeter3_sageimportCoxeter3# create an instance of `Coxeter3`R.<q>=LaurentPolynomialRing(ZZ)cox=Coxeter3(W,q)# the object `cox` is now managing a connection with an instance of `coxeter`Bruhat intervalsWe can use this instance ofCoxeter3to produce bruhat intervals as follows.# compute and returns the closed interval `[s1*s2, s1*s3*s2*s1*s3]` as a listinterval1=cox.bruhat_interval(s1*s2,s1*s3*s2*s1*s3)# alternatively, you can input these as a list of integers as in `Coxeter3`interval2=cox.bruhat_interval([1,2],[1,3,2,1,3])# we can compute the compute the interval `[1, s1*s3*s2*s1*s3]` as followsinterval3=cox.bruhat_interval([1,3,2,1,3])Kazhdan–Lusztig polynomialsFurther, we can usecoxto to compute Kazhdan–Lusztig polynomials as follows.# these are some elements which we will use in this examplex,y=(s1*s2,s1*s3*s2*s1*s3)# compute all of the Kazhdan–Lusztig polynomials `P_{z,y}`#  where `z \leq x` in Bruhat orderkl_polynomials=cox.klbasis(y)# the variable `kl_polynomials` is a map# for example, the following retrieves the `P_{x,y}`poly=kl_polynomials[x]# we can iterate through it as followsforz,Pinkl_polynomials.items():print("P_{"+str(z.reduced_word())+",y} =",str(P))# Alternatively we can retrieve an individual polynomial as followspoly=cox.P(x,y)
Package: coy
Coy - A program to control the behavior of process dynamically.Coy monitors various kinds of resources ("watch") and affects the behavior of the specified process ("control").Quick usage$pipinstallcoy
$coyPROGRAM15-second demoUse caseComputer science research.
You can execute a time-consuming program, for example, machine learning, while avoiding disturbing the other users in the same computer cluster where all users share its resource.Mining cryptocurrency.
You may get your computer to mine some cryptocurrency when you are making coffee.LicenseMIT. See COPYING.