Saravanan666/pypi-org huggingface dataset:
Package: pyISARICBasics
pyISARICBasicsThis package is intended to be a gentle introduction to the ISARIC dataset with the goal of helping researchers access and become familiar with the ISARIC dataset.The package is in the early stages of development and feature requests are welcomed as are new contributors. If you would like to contribute please make contact!InstallThis package can be installed using pip - the package installer for Python. We suggest creating a virtual environment (using conda or otherwise). Miniconda (https://docs.conda.io/en/latest/miniconda.html) is a minimal installer for Anaconda that is suitable for this purpose.Once you have installed conda you will need to create a new virtual environment. The steps are as follows (but seehttps://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.htmlfor alternatives).Type the following into a console window:conda create -n "your_env_name" python=3.8This will create a new conda environment with Python 3.8.You should then activate your new environment by entering the following command:conda activate "your_env_name"You then need to install pip using the following command:conda install pipYou can then type the following command to install the package:pip install pyISARICBasicsYou can then access any pyISARICBasics functionality described in the documentation using IDE or Jupyter Notebook that is configured to use this environment.While the package is in early development we suggest regularly checking for updates with the following command:pip install pyISARICBasics --upgradeDocumentationPackage documentation is contained at the following link:https://kyleyoung1997.github.io/pyISARICBasics/TutorialOnce you have created a virtual environment to access the tutorial you can download the .ipynb file from this repo.Create a folder that contains this notebook and another folder containing the raw ISARIC data.You then need to navigate to your newly created folder and activate your virtual environment. To do this you need to open a console window and use the following command:cd "path_to_directory"(If you're using a mac you can type cd and then drag the folder icon of your newly created folder into the terminal window to get the path)Then type the following command to open jupyter notebook:jupyter notebookWhich will launch an interactive browser window. You can then open the tutorial notebook.
Package: pyisbn
Introductionpyisbnis aGPL v3licensed module for working with various book
identification numbers.  It includes functions for conversion, verification and
generation of checksums.  It also includes basic classes for representing ISBNs
as objects.See thedocdirectory for installation instructions and usage information,
you can alsoview the content online.Requirementspyisbndoes not depend on any modules that aren’t included inPython’s
standard library, and as such should run with Python 3.6 or newer[1].  Ifpyisbndoesn’t work with the version of Python you have installed, open anissueand I’ll endeavour to fix it.The module have been tested on many UNIX-like systems, including Linux and OS X,
but it should work fine on other systems too.[1]Versions v1.2 and earlier will run on older Python versions, right back
to 2.4.ExampleThe simplest way to show howpyisbnworks is by example, and here goes:>>> import pyisbn
>>> Permutation_City = "1-85798-218-5"
>>> pyisbn.validate(Permutation_City)
True
>>> pyisbn.convert(Permutation_City)
'9781857982183'or using the object pattern use:>>> Permutation_City = pyisbn.Isbn10("1-85798-218-5")
>>> Permutation_City.validate()
True
>>> Permutation_City.convert()
'9781857982183'
>>> print(Permutation_City)
ISBN 1-85798-218-5All independent functions and classes contain (hopefully) useful docstrings.API StabilityNow thatpyisbn1.0 has been released the API will is frozen, and any
changes which aren’t backwards compatible will force a major version bump.ContributorsI’d like to thank the following people who have contributed topyisbn.PatchesChristopher WellsBug reportsJames Gaffneyhbc (bcho)Wen HepingMax Klein (notconfusing)Matt LeighyNathaniel M. Beaver (nbeaver)Randy Syring (rsyring)Stephen ThorneIdeasKevin SimmonsIf I’ve forgotten to include your name I wholeheartedly apologise.  Just drop
me amailand I’ll update the list!BugsIf you find any problems, bugs or just have a question about this package
either file anissueor drop me amail.If you’ve found a bug please attempt to include a minimal testcase so I can
reproduce the problem, or even better a patch!
Package: pyIsEmail
Getting StartedpyIsEmail is a no-nonsense approach for checking whether that
user-supplied email address could be real. Sick of not being able to useemail address taggingto sort through yourBacn? We can fix that.Regular expressions are cheap to write, but often require maintenance when
new top-level domains come out or don’t conform to email addressing
features that come back into vogue. pyIsEmail allows you to validate an
email address – and even check the domain, if you wish – with one simple
call, making your code more readable and faster to write. When you want to
know why an email address doesn’t validate, we even provide you with
a diagnosis.InstallInstall from PyPI usingpip, a package manager for Python.$pipinstallpyIsEmailDon’t have pip installed? Try installing it by running this from the
command line:$curlhttps://raw.github.com/pypa/pip/master/contrib/get-pip.py|pythonOr you candownload the source code (zip)forpyIsEmailand then
run:$pythonsetup.pyinstallYou may need to run the above commands withsudo.UsageFor the simplest usage, import and use theis_emailfunction:frompyisemailimportis_emailaddress="test@example.com"bool_result=is_email(address)detailed_result=is_email(address,diagnose=True)You can also check whether the domain used in the email is a valid domain
and whether or not it has a valid MX record:frompyisemailimportis_emailaddress="test@example.com"bool_result_with_dns=is_email(address,check_dns=True)detailed_result_with_dns=is_email(address,check_dns=True,diagnose=True)These are primary indicators of whether an email address can even be
issued at that domain. However, a valid response hereis not a guarantee
that the email exists, merely that iscanexist.If you want to limit using agTLDas the domain part of the email
address, you can do so with a flag:frompyisemailimportis_emailaddress="thiswont@workatall"bool_result_with_check=is_email(address,allow_gtld=False)detailed_result_with_check=is_email(address,allow_gtld=False,diagnose=True)In addition to the baseis_emailfunctionality, you can also use the
validators by themselves. Check the validator source doe to see how this
works.UninstallWant to get rid of pyIsEmail? Did you install with pip? Here you go:$pipuninstallpyIsEmailAcknowledgementsThe baseParserValidatoris based off ofDominic Sayers’is_email
script. I wanted the functionality in Python, so I ported it from the
original PHP.ContributingSo you’re interested in contributing to pyIsEmail? Check out ourcontributing guidelinesfor more information on how to do that.VersioningThis library aims to adhere toSemantic Versioning 2.0.0. Violations of
this scheme should be reported as bugs.CopyrightCopyright (c) 2015 Michael Herold. Open sourced under the terms of theMIT license.
Package: pyisic
OverviewPyisic defines industrial classification standards and concordances between standards.TheInternational Standard Industrial Classification of All Economic Activities (ISIC)is the international reference classification of productive activities. Its main purpose is to provide a set of activity categories that can be utilized for the collection and reporting of statistics according to such activities. Since the adoption of the original version of ISIC in 1948, the majority of countries around the world have used ISIC as their national activity classification or have developed national classifications derived from ISIC.Usage>>>importpyisic>>>pyisic.NAICS2017['927110']{'code':'927110','description':'Space Research and Technology','category':None}>>>pyisic.NAICS2017_to_ISIC4.concordant("927110"){(<Standard.ISIC4:'ISIC4'>,'5120'),(<Standard.ISIC4:'ISIC4'>,'8413')}InstallpipinstallpyisicDocumentationThe official documentation is hosted on readthedocs.org:pyisic.readthedocs.ioContributingIssues and pull requests are welcome!Refer toCONTRIBUTING.rstfor more details about the workflow and hints on how to prepare your pull request.
Package: pyisim
PyISIMPython client for IBM Security Identity Manager (ISIM / ITIM) web services (SOAP and REST APIs)Tested on ISIM 7.0.1 FP13 and ISIM 7.0.2 FP2
Due to API limitations some functionalities are served through ISIM's REST API and some other through ISIM SOAP Web Services.DocsYou can read the full documentationhereExamplesLook for thetests/folder in our Github repo to see some more detailed examples.Loginfrompyisim.authimportSessionuser="itim manager"password="secret"cert="./my_certificate.cer"url="iam.isim.com"sess=Session(url,user,password,cert)Every example after assumes you have already a valid Session object named sessCreating peoplefrompyisim.entitiesimportPersoninfo_persona={"employeenumber":"1015463230","correo":"cazdlt@gmail.com","title":"Especialista de producto","departmentnumber":"IBM",}persona=Person(sess,person_attrs=info_persona)persona.add(sess,"my org","my justification")Modifying peoplefrompyisimimportsearchpersona=search.people(sess,Person,"employeenumber","1015463230",limit=1)[0]persona.title="CEO"persona.modify(sess,"my justification")Custom Person/BPPerson entitiesfrompyisimimportPersonfrompyisimimportsearchclassMyBPPerson(Person):profile_name="BPPerson"def__init__(self,info,first_name=None):iffirst_nameisNone:first_name="Andrés"info["givenname"]=first_namesuper().__init__(person_attrs=info)MyBPPerson({"sn":"Zamora"}).add(sess,"my org","New BPPerson")Access requestfrompyisimimportsearchaccesses=search.access(sess,search_filter="*Consulta*",limit=5)person=search.people(session,by="givenname",search_filter="Juan",limit=1)[0]response=person.request_access(session,accesses,"justification")request_id=response.request.id# easily get request idApprove activityrequest_id="9585474949338"actividad=search.activities(session,by="requestId",search_filter=request_id,limit=1)[0]actividad.complete(sess,"approve","justification")Fulfill RFIrequest_id="123483274614"form=[{"name":"description","value":[dn_rol],},...]actividad=search.activities(session,by="requestId",search_filter=request_id)[0]actividad.complete(sess,form,"justification")Update property files (ISIM VA)frompyisim.va.authimportVASessionfrompyisim.va.configureimportupdate_propertyu="admin@local"p="secret"url="iam.isimva.com"cert="./mycert.cer"s=VASession(u,p,url,cert)property_file="CustomLabels.properties"property_name="scriptframework.properties"property_value="ITIM.java.access.util"update_property.create_or_update_property(s,property_file,property_name,property_value)FunctionalitiesEntities\OperationsSearchDN LookupAddDeleteSuspendRestoreModifyPeople✓✓✓✓✓✓✓Dynamic Roles✓✓✓✓✓Static Roles✓✓✓✓✓Provisioning Policies✓✓✓✓Activities✓(Complete)Organizational Containers✓✓Services✓Access✓(Request)Groups✓Accounts✓✓✓✓✓✓ (and orphan)ISIM VA Utilities:AuthenticationCreate/Search/Update property filesTODOin priority orderAdd operations to servicesDN LookupAddModifyDeleteTest connectionAdd some complex use cases to the documentationConsider using dictionaries as search filters
Package: py-is-ipfs
py-is_ipfspy-is_ipfs is a Python library to identify valid IPFS resources.This project is a work in progress.Installation and usageInstallationpy-is_ipfs is available on PyPI:python -m pip install py-is_ipfsUsagefromis_ipfsimportValidatorprint(Validator("QmYjtig7VJQ6XsnUjqqJvj7QaMcCAwtrgNdahSiFofrE7o").is_ipfs())Currently supportedCIDv0v1URLPath GatewayIPFSIPNSSubdomain GatewayIPFSIPNSPathIPFSIPNSNative URLIPFSIPNS...LicenseMITAcknowledgmentsProtocol Labsfor funding this project with a micro grant.ipfs-shipyard/is-ipfsfor the heuristics implemented in JavaScript that this project used as a starting point.
Package: pyIsis
pyIsis is a python wrapper that try to mimic Avis Isis Management Console
web service. It can manipulate workspaces, users, groups and permissions.
It can also manage snapshots, etc…InstallationFrom pypi:pipinstallpyIsisFrom the source directory:gitclonehttps://github.com/predat/pyIsis.gitcdpyIsispipinstall-rrequirements.txtpythonsetup.pyinstallTODO:Test workspace creation and deletion on ISIS 7000 and 5500Handle user permissions correctlyAdd documentationsAdd examplesMore pythonic style to do things…
Package: pyIsis_ReadOnly
pyIsis_ReadOnly: python wrapper for Avid Management Console==================================================pyIsis_ReadOnly is a python wrapper that try to mimic Avis Isis Management Consoleweb service. It can manipulate workspaces, users, groups and permissions.It can also manage snapshots, etc...Installation------------From pypi:.. code-block:: bashpip install pyIsis_ReadOnlyFrom the source directory:.. code-block:: bashgit clone https://github.com/pixelrebel/pyIsis_ReadOnly.gitcd pyIsis_ReadOnlypip install -r requirements.txtpython setup.py installTODO:------ Test workspace creation and deletion on ISIS 7000 and 5500- Handle user permissions correctly- Add documentations- Add examples- More pythonic style to do things...
Package: pyislam
PyIslamPyIslam is a python library that provide easier way to get verses and soon hadith.This Package useshttps://Quran.comapi to retrieve verses and some infoExamplesQuranGet a random verse from quranfrompyislamimportQuranQ=Quran()print(Q.get_random_verse)Get a specific versefrompyislamimportQuranQ=Quran(chapter=5,verse=10)print(Q.Verse)# Case SensitiveQ.Versewill return a dict in this structure :{'ar' : '<Arabic Verse>', 'en' : '<English Translation>', 'verse_number' : <Verse Number>, 'chapter_id' : <Chapter ID>TafsirComing soonHadithComing SoonInstallingpip install pyislam
Package: py-islykill
A simple python client for the Icelandic government authentication service Íslykill (www.islykill.is)You must apply for access before using this library.Usage=====Just remember to set the `username`, `password` and `service_id` as your own.`service_id` is the ID you are given from the national registry of Iceland (www.skra.is), e.g. forwww.betraisland.is the id is `betraisland.is` and the Íslykill authentication url is`https://innskraning.island.is/?id=betraisland.is`>>> import islykill>>> islykill.username = "Your-username-here">>> islykill.password = "Your-password-here">>> islykill.service_id = "dev.roddfolksins.is">>> token = 'Some-received-token' # the token received from island.is>>> ip_address = '1.1.1.1' # remote user ip address>>> result = islykill.generate_saml_from_token(token, ip_address)>>> print result{'ssn': '1234567890', 'ip_address': '1.1.1.1', 'name': u'Jon Jonsson'}If an error occurs, the result from `generate_saml_from_token` will return a dictionary with thekey "error" with the body of the error as value, e.g.>>> print result{'error': 'HTTPError = 500'}500 usually mean that you can make the request again immediately, just a glitch in thewebservice.>>> print result{'error': 'Unable to find SAML assertion from token.'}"Unable to find SAML assertion from token" means that the token is invalid or expired somehow,which means the user has to authenticate again.
Package: pyism
pyISM - Incremental Sequence Models for PythonWhat is pyISM?The pyISM is a Python package implementing a family of Incremental Sequence Models (ISMs) implemented withtensorflowwith anscikit-multiflowAPI.How to install?PyPI:pip install -U pyismGitHub:pip install -U git+https://github.com/alvarolemos/pyismWhat are Incremental Sequence Models (ISMs)?Incremental Sequence Modelsare a family ofRecurrent Neural Networks(RNNs) to tackle evolving data streams, aiming at less complexity without losing performance. It was proposed in the researchAn Incremental Learning approach using Sequence Models, to be presented by Álvaro Conde Lemos Neto as his Master's degree final dissertation in theGraduate Program in Electrical Engineering(PPGEE) of theFederal Univeristy of Minas Gerais(UFMG), supervisde by Prof. Criatiano Leite de Castro, PhD, both from theMachine Intelligence And Data Science(MINDS) lab.
Package: pyiso4
pyiso4An attempt to implement theISO 4standard for journal titles abbreviations in Python,
as described in Section 7.1 of theISSN Manual.
Inspired byabbrevIsoby @marcinwrochna.Install and usepipinstall--upgradegit+https://github.com/pierre-24/pyiso4.gitUsage:$ iso4abbreviate "Journal of the American Chemical Society"
J. Am. Chem. Soc.You can abbreviate multiple titles at the same time:$ iso4abbreviate "Journal of Chemical Physics" "Journal of Physical Chemistry A"
J. Chem. Phys.
J. Phys. Chem. ABy default, the program abbreviate usingthis list of abbreviation(slightly modified version of LTWA 2017)
andthis list of stopwords.
You can change that using--ltwaand--stopwordsto provide your own files (with the same syntax).As for rule 7.1.11, namely that abbreviations of generic words such as part, etc. are omitted unless they are required,
the program removes them by default.
To change this behavior, use--keep-part.Known issuesA list of failed tests is foundhere.
It currently failsto fulfil rule 7.1.7 of the manual: keep prepositions in expressions (likein vivo) and place/personal name intact,to fulfil rules 7.1.2, 7.1.3 and 7.1.8 of the same manual (but this is of lesser importance),on compound words (such asmicroengineering), except if explicitly found in the LTWA,on someligatures(handle the commonœandæ)Python APIfrompyiso4.ltwaimportAbbreviate# create an abbreviator (using the default LTWA)abbreviator=Abbreviate.create()# abbreviate somethingabbreviation=abbreviator('Journal of the American Chemical Society',remove_part=True)ContributionsContributions, either withissuesorpull requestsare welcomed.If you can to contribute, this is the usual deal:
start byforking, then clone your forkgitclone(...)cdpyiso4Then setup... And you are good to go :)python-mvenvvenv# a virtualenv is always a good ideasourcevenv/bin/activate
makeinstall# install what's needed for devDon't forget to work on a separate branch, and to run the linting and tests:makelint# flake8maketest# unit tests
Package: pyiso8583
iso8583package serializes and deserializes ISO8583 data between
rawbytesISO8583 data and a regular Pythondict.iso8583package supports customspecificationsthat can define:Field length and data encoding, such as BCD, ASCII, EBCDIC, etc.Field length count measured in bytes or nibbles.Field type, such as fixed, LLVAR, LLLVAR, etc.Maximum lengthOptional field descriptionMultiple specifications can co-exist to support ISO8583 messages for POS, ATM,
file actions, and so on. Simply define a new specification dictionary.iso8583package includes a starter specification iniso8583.specsmodule that can be
used as a base to create own custom/proprietary specifications.Additional information is available onRead The Docs.Installationiso8583is published onPyPIaspyiso8583and can be installed from there:pip install pyiso8583Encoding & DecodingUseiso8583.decodeto decode raw ISO8583 message.
It returns two dictionaries: one with decoded data and one with encoded data.>>>importpprint>>>importiso8583>>>fromiso8583.specsimportdefault_asciiasspec>>>encoded_raw=b'02004000000000000000101234567890'>>>decoded,encoded=iso8583.decode(encoded_raw,spec)>>>pprint.pp(decoded){'t':'0200','p':'4000000000000000','2':'1234567890'}>>>pprint.pp(encoded){'t':{'len':b'','data':b'0200'},'p':{'len':b'','data':b'4000000000000000'},'2':{'len':b'10','data':b'1234567890'}}Modify the decoded message to send a response back.
Change message type from ‘0200’ to ‘0210’.
Remove field 2 (PAN). And add field 39 (Response Code).>>>decoded['t']='0210'>>>decoded.pop('2',None)'1234567890'>>>decoded['39']='05'Useiso8583.encodeto encode updated ISO8583 message.
It returns a raw ISO8583 message and a dictionary with encoded data.>>>encoded_raw,encoded=iso8583.encode(decoded,spec)>>>encoded_rawbytearray(b'0210000000000200000005')>>>pprint.pp(decoded){'t':'0210','p':'0000000002000000','39':'05'}>>>pprint.pp(encoded){'t':{'len':b'','data':b'0210'},'p':{'len':b'','data':b'0000000002000000'},'39':{'len':b'','data':b'05'}}Pretty Print MessagesUseiso8583.ppto pretty print ISO8583 message.>>>importiso8583>>>fromiso8583.specsimportdefault_asciiasspec>>>encoded_raw=b'02004000000000000000101234567890'>>>decoded,encoded=iso8583.decode(encoded_raw,spec)>>>iso8583.pp(decoded,spec)tMessageType:'0200'pBitmap,Primary:'4000000000000000'2PrimaryAccountNumber(PAN):'1234567890'>>>iso8583.pp(encoded,spec)tMessageType:b'0200'pBitmap,Primary:b'4000000000000000'2PrimaryAccountNumber(PAN):b'10'b'1234567890'Contributeiso8583package is hosted onGitHub.Feel free to fork and send contributions over.
Package: pyIsoFit
pyIsoFitWhat does it do?pyIsoFitis an isotherm fitting package with co-adsorption prediction functionality using the extended dual-site Langmuir model.pyIsoFitwas created with a focus on fitting with isotherm models that exhibit thermodynamically correct behaviour. It is flexible and can fit any number of datasets with features such as an ability to toggle fitting constraints for the different fitting procedures implemented. Additionally, the package can be used to fit any number of isotherm data and readily generate plots of the fittings and tables of the fitting parameters for the user and predict co-adsorption using the extended dual-site Langmuir model. While currently the package is limited to only one co-adsorption fitting procedure, it sets foundational work for an extended model-based python package for multi-component prediction that might serve as an alternative to IAST.Below is a summary ofpyIsoFit's features:Fitting to 10 analyitcal isotherm models: Dubinin-Radushkevich (MDR), Guggenheim-Anderson-de Boer (GAB), Do and Do (DoDo), Brunauer, Deming, Deming and Teller (BDDT), Brunauerâ€“Emmettâ€“Teller (BET), Henry, Sips and Toth.Thermodynamically consistent fitting procedures for Langmuir and dual-site Langmuir (DSL).Co-adsorption prediction using extended DSL for any number of components.Heat of adsorption caculation for Langmuir, DSL and GABTabulating results, generates plots and saves them as .csv files.InstallationLatest stable release:pipinstallpyIsoFitUsageFor a tutorial on how to use the package with examples and use cases please refer to thepyIsoFit_demo.ipynbfile.
Package: pyisopach
pyISOPACh - a "fairly fast" ISOtope PAttern Calculator for PythonThis is a sister package of the DIMEdb project. This program calculates the isotopic distribution/pattern of a given chemical species.InstallationpyISOPACh requires Python 3+ and is unfortunately not compatible with Python 2. If you are still using Python 2, a clever workaround is to install Python 3 and use that instead.The easiest way of installing pyISOPACh is usingpip:pip install pyisopachAlternatively, you can usegitandpipin unison to get the development branch:pip install https://github.com/AberystwythSystemsBiology/pyISOPAChExample Usage# Import the package into python>>>importpyisopach# Create Molecule object for Sucrose>>>mol=pyisopach.Molecule("C12H22O11")# Return molecular weight>>>mol.molecular_weight342.2970125766493# Calculate isotopic distribution/pattern>>>mol.isotopic_distribution()(array([342.11621155,343.11956639,344.12045733]),array([100.,12.97887395,2.260493]))LicenseCode released underthe MIT license.