Saravanan666/pypi-org huggingface dataset:
Package: pycombinators
combinators.pyElementary combinators in Python inspired by LISP and Haskell. Mostly a convenience library for my sake.Installationpip install pycombinatorsSample Usagefrompycombinatorsimportflipfromfunctoolsimportpartial# returns true if all values in xs are numbersdefis_all_numbers(xs:list)->bool:isinstanceof=flip(isinstance)returnall(map(partial(isinstanceof,float),xs))
Package: pycomchem
pyComChemA Python package to access data via the CommonChemistry.org API.A revised version of the CommonChemistry website, originally at commonchemistry.org, has been redeveloped
into a much larger (~500K) database of CAS Registry Numbers and now includes an API for programmatic access.This package provides access to the API to search the database and extract chemical metadata, images, and mol files.Currently available commands are:query - search either and exact string or substringdetail - full metadata retrievalkey2cas - specialized function to return the CAS Registry Number of a compound from its InChIKeychemimg - download structural images an.svg,.png, or.psfilesFuture improvements will includemolfile - download the mol file of a compoundadditional specialized functions
Package: pycomcigan
pycomcigan컴시간알리미에서 시간표 정보를 가져오는 Python 라이브러리입니다.컴시간알리미 구조에 대한 설명은comcigan.md를 참고하세요.설치$pipinstallpycomcigan기능시간표 가져오기학교 검색담임 정보사용법frompycomciganimportTimeTable,get_school_code# 학교 검색# [학교명, 지역명, 학교 코드, 지역 코드] 리스트로 응답get_school_code("경기")# 시간표 가져오기# week_num: 0이면 이번주, 1이면 다음주timetable=TimeTable("경기북과학고",week_num=1)# 3학년 1반 화요일 시간표print(timetable.timetable[3][1][timetable.THURSDAY])라이센스MIT License
Package: pycomedi
This package provides an object-oriented interface to theComedidrivers.  The standard Python interface bundled with Comedilib is a
simple SWIG clone of the C interface.  In pycomedi, we convert the
functions into class methods (seepycomedi.classes), so you don’t
have to worry about dragging around opaque types likecomedi_t *device pointers.  We also bundle related constants together in_Enumsand_Flags(seepycomedi.constants), to make
handling common operations like flag manipulations simpler.  Finally,
there are a number of utility classes (seepycomedi.utility) to
make common tasks like creating instructions or reading hardware-timed
analog input easier.InstallationPackagesGentooI’ve packaged pycomedi for Gentoo.  You needlaymanand mywtk
overlay.  Install with:# emerge -av app-portage/layman
# layman --add wtk
# emerge -av dev-python/pycomediDependenciesIf you’re installing by hand or packaging pycomedi for another
distribution, you’ll need the following dependencies:PackagePurposeDebianGentooNumPy?python-numpydev-python/numpySciPytestingpython-scipysci-libs/scipyComediComedilib interfacepython-comedilibsci-libs/comedilib[1]nosetestingpython-nosedev-python/noseCythonComedilib interfacecythondev-python/cythonpython-kmodOptional ext. info.dev-python/python-kmod[1][1](1,2)In thewtk overlay.If python-kmod is installed, you will get additional module
information from theinfo.pydemo program.  If it is not
installed, everything will still work, butinfo.pywill only be
able to get the module version, not the kernel version, staging-ness,
parameters, etc.Installing by handPycomedi is available as aGitrepository:$ git clone git://tremily.us/pycomedi.gitSee thehomepagefor details.  To install the checkout, run the
standard:$ python setup.py installUsageSee the examples in thedocdirectory.TestingRun integration tests with:$ nosetests --with-doctest --doctest-extension=txt docThe analog integration tests read from analog input channels 0 through
3, and write to analog output channels 0 and 1, so you’ll need a board
with that many channels.  You should also make sure that the analog
output channels aren’t plugged into anything sensetive, since the
tests sweep their output around over a reasonable chunk of the channel
range.  Some of the internal unit tests also write, so it’s safest to
just disconnect all digital lines and analog outputs before running
the tests.Run both integration tests and internal unit tests with:$ ./test.shLicenceThis project is distributed under theGNU General Public License
Version 2or greater.AuthorW. Trevor Kingwking@tremily.us
Package: pycomedoresugr
IntroducciónEsta biblioteca realizada usando python3 permite acceder a los datos del menu de los comedores de la Universidad de Granada de una manera sencilla.Los datos son consultados en la web decomedoresFunciones actualesget_menu_semana -> Obtiene en “crudo” el menú semanalmenu_semana_diccionario -> Se pasa del menú en “crudo” a un diccionariomenu_semana_json -> Del menú en diccionario se pasa a jsonmenu_dia -> Usandomenu_semana_diccionariose obtiene el menú del día deseado, si no se especifica ningún día, se devuelve el menú del día actualTestsComo el menú cambia cada semana, hemos creado 3 ficheros html solo con la información necesaria para nuestros test, dichos fichero se encuentran en el directorioTest.LicenciaNota: La licencia afecta SOLO a la biblioteca
Package: pycomet
CometComet is a CLI to manage multiple Terraform configurations in parallel.FeaturesSupports use of workspacesFilter executions based on job name, region or workspaceRuns Terraform in parallelDRY backend configurationMaps workspaces to different accountsLimitationsCannot initialize new workspaceNeed to runcomet initanytime changes to Terraform files are madeLimited debug loggingDoes NOT prompt user to approve apply or destroyOnly supports local Terraform configurationsGetting Startedpipinstallpycomet

comet--help

Usage:comet[OPTIONS]COMMAND[ARGS]...Aprogramtomanageandrunmultipleterraformconfigurations.

Options:-c,--config-fileTEXTNameofcometconfigfile[default:comet.yml]-d,--depends-onTEXTRunalljobsthathaveadepencymatchingaregex.--debugTEXTEnabledebugoutput.-j,--jobsTEXTFilterjobsusingaregularexpression.-m,--max-parallelINTEGERMaximumnumberofjobstoruninparallel(cannotbemorethannumberofcores).-r,--regionTEXTFilterregionsusingregex.-w,--workspaceTEXTFilterworkspacesusingregex.-vEnabledebuglogging--helpShowthismessageandexit.

Commands:applyRunterraformapply.destroyRunterraformdestroy.initRunterraforminit.planRunterraformplan.ConfigurationThe following configuration is found in the examples directory:---workspaces:-name:prodaccount_id:12345678regions:-us-east-1-us-west-2-name:stagingaccount_id:12345678regions:-us-west-2-name:defaultaccount_id:12345678regions:-us-west-2# TODO: Add support for creating provider and remote statebackend:bucket:cs-comet-test-statekey:"{{job_name}}/{{region}}"region:"us-west-2"role_arn:"arn:aws:iam::{{account_id}}:role/terraform"jobs:-name:app# TODO: Add ability to include other directories as dependenciessource:app# Depends on can be any value you decide, it is a way to identify jobs have a common dependency.# If you have a job that depends on an external module you can give it a name such as modules-null-label# running comet -d modules-null-label will trigger every job that has the value in it's depends on list.depends_on:-users-modules-null-label-name:userssource:usersdepends_on:-app-name:websitesource:websitedepends_on:-modules-null-labelWorkspacesA list of workspaces used by your Terraform configurations. It is recommended to use a different
AWS account for each workspace to isolate your environments.BackendSpecifies backend parameters to be used during terraform init. Comet using pystache to render variable values
from job and workspace configurations.JobsEach job must specify a name and source. The field depends_on is used to to filter jobs based on dependencies. However,
depends_on does not make a dependency graph between jobs. From our experience it is not often you want to run through
an entire dependency graph of Terraform configurations, rather you want to run one set that depends on a common value.
Package: pycoMeth
Version in this branch: 2.2.2DNA methylation analysis downstream to Nanopolish for Oxford Nanopore DNA sequencing datasetspycoMethcan be used for further analyses starting from the output files generated byNanopolish call-methylation. The package contains a suite of tools tofind CpG islands,segment methylome, and to perform adifferential methylation analysisacross multiple samples.pycoMethgenerates extensive tabulated reports and BED files which can be loaded in a genome browser. In addition, an interactive HTML report of differentially
methylated intervals/islands can also generated at the end of the analysis.Methplotlibdeveloped byWouter de costeris an excellent complementary tool to visualise and explore methylation status for specific loci.Please be aware thatpycoMethis a research package that is still under development. The API, command line interface, and implementation might change without retro-compatibility.InstallationInstall either using conda:conda install -c snajder-r -c bioconda -c conda-forge pycomethOr using pip:pip install pycomethDocumentationA more detailed usage documentation can be found athttps://snajder-r.github.io/pycoMeth/pycoMeth workflowpycoMeth example HTML reportExample HTML report 1Example HTML report 2CitingThe repository is archived at Zenodo.https://doi.org/10.5281/zenodo.6637645If you find pycoMeth useful, please cite our preprint:Snajder, Rene H., Oliver Stegle, and Marc Jan Bonder. 2022. "PycoMeth: A Toolbox for Differential Methylation Testing from Nanopore Methylation Calls." bioRxiv.https://doi.org/10.1101/2022.02.16.480699.@article {Snajder2022.02.16.480699,
    author = {Snajder, Rene and Leger, Adrien and Stegle, Oliver and Bonder, Marc Jan},
    title = {pycoMeth: A toolbox for differential methylation testing from Nanopore methylation calls},
    year = {2022}, doi = {10.1101/2022.02.16.480699}, publisher = {Cold Spring Harbor Laboratory},
    journal = {bioRxiv}
}AuthorsRene Snajder (rene.snajder@gmail.com)Adrien Leger
Package: pycomfort
pycomfortUtility methods for python codeIt heavily uses functional approach and pyfunctional library to ease the work with file traversing and other routine tasks.files.pyThe most important methods are:def children(p: Path) -> seq #lists files and subfolders as pyfunctional sequencedef dirs(p: Path) -> seq #lists subfolders as pyfunctional sequencedef files(p: Path) -> seq: #lists files as pyfunctional sequencedef with_ext(p: Path, ext: str) -> seq: # filters files by extensiondef rename_files_with_dictionary(files_or_path: Union[seq, Path], dictionary: dict, test: bool = False): #renames files according to key value pairs mentioned in the dictionarydef rename_files(files_or_path: Union[seq, Path], has: str, what: str, to: str): rename files that contain a substringdef rename_not_files(files: seq, not_has: str, what: str, to: str) -> seq: #rename files that do NOT contain a substringdef replace_in_file(file: Path, what: str, to: str, output: Optional[Path] = None): #replaces string in a filedef replace_from_dict_in_file(file: Path, replacement: dict, output: Optional[Path] = None, verbose: bool = False) -> Path: # replaces the text in the file based on key-value pairs in the dictionarydef tprint(p: Path, max_depth: int = -1,  prefix: str = "", debug: bool = False, depth: int = 0: #prints the file treedef traverse(p: Path, fun: Callable[[Path], bool] = None, max_depth: int = -1, flatten: bool = True, depth: int = 0) -> list # traverses the file system searching for sampleexecutablesExecutables are in comfort.py. At the moment it is the text replacement functions wrapped to CLI by click library:def replace(file: str, what: str, to: str, output: Optional[str]):def replace_dict(file: str, dictionary: str, output: Optional[str], verbose: bool = False):publishing to pipYou can use publish.sh script
Package: pycomfospottwin40
Zehnder comfospot twin 40Reads out data from the RS485 line in a comfospot twin 40 setup.
A cheap RS485 reader is sufficient.
Only tested with python 3About the comfospotThis seems to be a OEM product rebranded by/for Zehnder.
It's available too under these brand names:Zewotherm FanGetAir SmartFanThese devices has not been tested, but should work as they seem identical.Active controlCurrently the software only eavesdrops on the communication
between the controller and the fans.
The goal is to have active control too, but unfortunately the protocol
only supports one master (the controller).
It's not trivial to have your PC override the fan levels of the controller,
because the latter continuously repeats its requests.
As proof of concept, I've been able to control the fans
using a replayed signal from the oscilloscope.
I want to keep the controller installed for easy touch screen control.
Package: pycomlink
[![Build Status](https://travis-ci.org/pycomlink/pycomlink.svg?branch=master)](https://travis-ci.org/pycomlink/pycomlink)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/pycomlink/pycomlink/master)pycomlinkA python toolbox for deriving rainfall information from commercial microwave link (CML) data.Installationpycomlinkworks with Python 3.6 and newer. It might still work with Python 2.7, but this is not tested. It can be installed via [conda-forge](https://conda-forge.org/):$ conda install -c conda-forge pycomlinkIf you are new tocondaor if you are unsure, it is recommended to [create a new conda environment, activate it](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands), [add the conda-forge channel](https://conda-forge.org/) and then install.Installation viapipis also possible:$ pip install pycomlinkIf you install viapip, there might be problems with some dependencies, though. E.g. the dependencypykrigemay only install ifscipy,numpyandmatplotlibhave been installed before.To run the example notebooks you will also need the [Jupyter Notebook](https://jupyter.org/)
andipython, both also available viacondaorpip.If you want to clone the repository for developing purposes follow these steps (installation of Jupyter Notebook included):$ cd WORKING_DIRECTORY
$ git clonehttps://github.com/pycomlink/pycomlink.git$ conda env create –name ENV_NAME -file=environment_dev.yml
$ conda activate ENV_NAME
$ pip install -e WORKING_DIRECTORY/pycomlinkUsageThe following jupyter notebooks showcase some use cases ofpycomlink[Basic example CML processing workflow](http://nbviewer.jupyter.org/github/pycomlink/pycomlink/blob/master/notebooks/Basic%20CML%20processing%20workflow.ipynb)more to come… (see some [notebooks with old outdated pycomlink API](https://github.com/pycomlink/pycomlink/tree/master/notebooks/outdated_notebooks))FeaturesPerform all required CML data processing steps to derive rainfall information from raw signal levels:data sanity checkswet/dry classificationbaseline calculationwet antenna correctiontransformation from attenuation to rain rateGenerate rainfall maps from the data of a CML networkValidate you results against gridded rainfall data or rain gauges networks
Package: pycommander
How it works?Do you have a application class or a function and do you want to execute them by command line? Here
is your solution: pycommander.InstallationVia easy_install:> easy_install pycommanderConfigurationAdd a section calledpycommander.commandto your entry points in your setup.py
file. Then put your command names pointing to a python class or function, and
that it’s. For example:[pycommander.command]
command_class=module.submodule:ExampleClass
command_function=module.submodule:functionInstall your application:> python setup.py [develop | install]Now, you can executepycomin your command line and see:> pycom
ERROR: Please, enter a command name
Usage: pycom COMMAND [command_options]

Options:
  -h, --help  show this help message and exit

  Registered Commands:
    help                  Show this help message
    command_class
    command_function      <------------ This are your commandsExtra FeaturesAutocomplete for subcommands and options.To activate it you have source the pycommander_complete file (which is in the distribution)
from your .bash_rc or .profile.
Package: pycommando
CommandoCommando is a framework for batch processing.Versioning of this repository followsSemantic Versioning 2.0.0subprocess.runをラッピングしているので外部コマンドのために面倒な記述をしなくて良いのが特徴。コマンドラインツールを脳筋で実行していくバッチ処理のためのフレームワーク。
基本的にPythonの構文でワークフローを構築できるので、バッチ処理での変数の取り回しなどがしやすいのがメリット。Shell Script や Bat ファイルを書かなくても実行したいコマンドさえわかっていればバッチ処理が書ける。Conceptバッチ処理ワークフローを構築するためのフレームワーク逐次処理で書く外部コマンドに関しては subprocess.run()が走るFeatureadd()add commandexecute():Execute the added command.Process them in the order they were added.Functions can also be executed as commandsUsageinstallpipinstallpycommandoscriptimportloggingfromcommandoimportcommandologging.basicConfig(filename="test.log",level=logging.DEBUG)defzero():1/0commando.add("mkdir test")commando.add("touch test\\test.txt")commando.add(zero)commando.execute()logDEBUG:commando.commando:mkdir test
DEBUG:commando.commando:touch test\test.txt
DEBUG:commando.commando:<function zero at 0x01A177C0>
ERROR:commando.commando:Could not execute function
Traceback (most recent call last):
  File "C:\venv\lib\site-packages\commando\commando.py", line 28, in execute
    cmd()
  File "main.py", line 10, in zero
    1 / 0
ZeroDivisionError: division by zero
Package: pycommandparse
PycommandparseStructureIn pycommandparse, each function is bound to apycommandparse.Commandinstance.
The Parser takes these as inputs.Internally, the parser has a dictionary with keys having all names and aliases with the values being the correspondingCommandinstances.The Parser matches the imcoming commands to the given names/aliases and runs the command with the arguments.ExamplesDefining and Adding CommandsMethod 1: Directly defining the command.frompycommandparse.parsersimportBaseParserparser=BaseParser()# Ways to define commands## 1. directly via pycommandparse.CommandfrompycommandparseimportCommanddefmult(x,y):returnint(x)*int(y)multiplication=Command(name="multiply",command=mult,usage="multiply *args",description="Multiplies 2 numbers you input",number_of_args=2,aliases=['product'])parser.add_command(multiplication)parser.parse_run("multiply 3 5")# Outputs "15"Method 2: Decorators.frompycommandparse.parsersimportBaseParser## 2. Using decorator### Not specifying number_of_args will allow any number of arguments.@parser.command(name="add",aliases=['sum'],usage="add *numbers",description="Adds what you input.")defadd(*numbers):returnsum([int(number)fornumberinnumbers])parser.parse_run("add 3 5 6 7")# Outputs "21"parser.parse_run("add 2 4")# Outputs "6"
Package: pycommands
pycommandsHandle a list of commands that should be executed easily and with undo support.How to useInstallpycommands is available on PyPIpipinstallpycommandsBasic usageDefinition of commandsfromcommands.baseimportBaseCommandfromcommands.exceptionsimportCommandExceptionfromcommands.invokerimportInvokerclassCommand1(BaseCommand):defbuild(self):return"touch content.txt"defbuild_undo(self):return"rm content.txt"classCommand2(BaseCommand):defbuild(self):return"mv content.txt content-replaced.txt"defbuild_undo(self):return"mv content-replaced.txt content.txt"classInvalidCommand(BaseCommand):defbuild(self):raiseCommandException()Simple default execution with success commandsfromcommands.invokerimportInvokerinvoker=Invoker()invoker.execute([Command1(),Command2(),],run_undo=False)# outputrunningcommand:touchcontent.txtrunningcommand:mvcontent.txtcontent-replaced.txt# If a invoker.undo() is called then all commands undo operation will be done in the LIFO order.invoker.undo()# outputrunningundocommand:mvcontent-replaced.txtcontent.txtrunningundocommand:rmcontent.txt# If a invoker.execute() is called with run_undo as True, then the undo operation will be done always# that a command raise CommandExceptioninvoker=Invoker()invoker.execute([Command1(),Command2(),InvalidCommand(),],run_undo=True)# outputrunningcommand:touchcontent.txtrunningcommand:mvcontent.txtcontent-replaced.txtrunningcommand:touchcontent.txtrunningcommand:mvcontent.txtcontent-replaced.txtrunningundocommand:mvcontent-replaced.txtcontent.txtrunningundocommand:rmcontent.txtHow to contributeWe welcome contributions of many forms, for example:Code (by submitting pull requests)Documentation improvementsBug reports and feature requestsSetting up for local developmentWe use pipenv to manage dependencies, so make sure you have it installed.Creating environment/<project-path>/pipenvinstall--python=3Activing environment/<project-path>/pipenvshellInstall pre-commit hooks:pre-commitinstallRun tests by evoking pytest:pytestThat's it! You're ready from development
Package: pycomment
pycommentInserting repr value on comment with marker (marker is# =>).
This is heavily inspired by xmpfilter of ruby’srocodetoolsinstall$pipinstallpycommenthow to usecode.pyimportsysprint("stderr",file=sys.stderr)print("hello")1+2+3+3+4+5# =>1+2+3+3+4+5# =>print("bye")$pycomment--inplacecode.pyimportsysprint("stderr",file=sys.stderr)print("hello")1+2+3+3+4+5# => 181+2+3+3+4+5# => 18print("bye")# -- stdout --------------------# >> hello# >> byemulti-line outputimportnumpyasnpnp.arange(9).reshape((3,3))# => multi-line..# array([[0, 1, 2],#        [3, 4, 5],#        [6, 7, 8]])# ..multi-line0.1.1fix import module is failed at same directory (#18)0.1.0exec in tempfile, so more robust (#17)0.0.6multi-line output with indentation (support completely)  (#14)0.0.4:multi-line output support (#12)-ioption is added, same as–inplace(#7)
Package: py-comment-times
A package that allows times away or far of a given time and multiple formats for that given timeBasic Python Library That Gives Times Ago, Times Due Or Multiple Time Formats(Pick Any In The Array)## Below is an example how you use it

from py_comment_times import get_times_far, get_times_format

import datetime
from datetime import timezone

now = datetime.datetime.now(timezone.utc)

next = now + datetime.timedelta(1,3)

print(get_times_format(next))

print(get_times_far(next))
Package: py-commit-checker
📝 py-commit-checkerA basic git commit message format checker.Note: check outhttps://github.com/jorisroovers/gitlintfor a much better,
more featureful, and actually tested implementation! the only unique feature inpy-commit-checkeris the built in leading emoji check... 😀CheckersSmall set of mandatory (cannot be disabled) and optional (opt in or out) checkers.Always enabledThese checks are always enabled:mandatory blank second line (delimiting title + body of message)OptionalThese checks can be set to on or off using command line args:50/72rule checking (configurable lengths)leading emojicheckReturns non-zero in case of any violationInstallpipinstallpy-commit-checker# note: you'll need git installed for the gitpython dependency to work!Usage# check top commit for 50/72 + emoji compliance on HEADpy-commit-checker--emojis# check a specific commitpy-commit-checker--emojis--commitHEAD~2# check a repo at a path other than cwdpy-commit-checker--repo-path../openbsd# check a range of commits; py-commit-checker-branch helper script (installed# alongside py-commit-checker)PY_COMMIT_CHECKER_ARGS='--emojis'py-commit-checker-branchorigin/masterWhy is this not just a single regexBecause I was too lazy to figure out how to exclude URI elements from the body
line length check in regex 🐸☕.Also distributing with pypi is pretty convenient 😀TestsThis package uses tox. To run the tests locally:pipinstalltox==3.7.0# minimum supported versiontox--parallelauto# run tox in parallelThis is a py2+3 universal package; it's recommended you install python3.6 with
whatever your system package manager is, if it isn't already installed, so tox
can run the checks for that too.Tox will enforce 100%pylintcompliance, andblackformatting compliance.LicenseMIT.
Package: pycommon
Linux build:Windows build:A collection of useful utilitiesInstallingInstall from PyPI:pycommon on PyPIInstall using pip:pip install pycommonStandards (draft)All code tested with 100% coverage.No breaking backwards compatibility after 1.0.Cross-platform.Supports Python 2.7, 3.4, 3.5, 3.6, 3.7 on LinuxSupports Pyton 2.7, 3.4, 3.5, 3.6, 3.7 on Windows