Saravanan666/pypi-org huggingface dataset:
Package: int_connector_lib
Python connector plugin common code: v0.1.0Rebuild proto filesClone NEOS-Critical/neos-int-connector-lib, and hashicorp/go-plugin to your
code directory (assumed parent of this directory)Build the connector proto files.invbuild-proto-libBuild the hashicorp go plugin files.invbuild-proto-pluginEdit these files to all importfrom proto import xxxxas above command
importsmanager_pb2etc directly despite being put in a proto module.TODO: build these in a communal location so imports etc can be done right.PrerequisitesThe following packages are used across python repositories. A global install of them all ishighlyrecommended.PoetryInvokeCode QualityTestsinvoketests
invoketests-coverageLintinginvokecheck-format
invokecheck-styleAlternatively run the following to automatically fix linting issues that ruff can.ruff.--fixReleasesRelease management is handled usingbump2version. The below commands will
start a new release cycle.$invokebump-patch
$invokebump-minor
$invokebump-major
>vX.Y.Z.rc0Release candidates can be tested, and new builds can be triggered
usingbump-build.$invokebump-build
>vX.Y.Z.rc0->vX.Y.Z.rc1Once a release candidate is stable,bump-releasewill move it fromrcto
official.$invokebump-release
vX.Y.Z.rc1->vX.Y.Z
Package: intdash
intdash SDK for Python is a client library that accesses the intdash resource API and real-time API.InstallYou can install intdash SDK for Python (hereafter intdash-py) using PyPI. Install with the following command.$ pip install intdashUsageTo start using intdash-py, create a client. To create a client, use the URL of the connection destination and the credentials of the edge account (token or user name/password combination). See intdash client for other available parameters.importintdashclient=intdash.Client(url="https://example.intdash.jp",edge_token="your_token",)Example:the edge resource is specified and the information of the own edge is retrieved.# Edge resourceedges=client.edges# print out edge informationme=edges.me()print(me)DocumentationDocumentation and links to additional resources are available athttps://docs.intdash.jp/sdk/python/latest/en/
Package: int-date
Integer Date utilitiesVERSION: 0.2.0This module contains the utilities for operating integer date, such as: 20150301IssuesWe useGithub Issuesto manage the issues.Contact author:cedric.zhuang@gmail.comLICENSEBSD LicenseAPI Document###int_dateConverts the input to an integer that represents a date.Parameter: astr,datetime.datetime,datetime.dateor numberException:ValueErrorif the input could not be convertedReturn: an integer represents a dateExamples:>>>int_date(10121015.0)10121015>>>int_date('2012/10/15')10121015>>>int_date('2012-10-15')10121015>>>int_date(datetime.date(2015,5,21))20150521to_dateConverts the input todatetime.dateParameter: astror numberException:ValueErrorif the input could not be convertedReturn: adatetime.dateobjectExamples:>>>to_date(20151205)datetime.date(2015,12,5)>>>to_date('2015-12-05')datetime.date(2015,12,5)get_intervalRetrieve the days between two dates.Parameter: 2 inputs that represents valid datesException:ValueErrorif any of the input is not validReturn: the days in betweenExamples:>>>get_interval(20120530,'2012-06-02')3>>>get_interval('2012/6/6','2012-06-02')-4from_diffRetrieve the int date from a start date and a delta.Parameter: a start date and a deltaException:ValueErrorif start date is not validReturn: the result dateExamples:>>>from_diff('2012-7-31',5)20120805>>>from_diff('2012/8/3',-10)20120724in_month,in_date&in_yearCheck whether the int date matches the specified month, date or year.Parameter: an int date and multiple value to matchException:ValueErrorif the int date is not validReturn: true if it matches, false if notExamples:>>>in_date(20140503,*[3,5,7])True>>>in_month('2014-05-03',*{3,5,7})True>>>in_month(20140131,*[3,5,7])False>>>in_date('2014-01-31',30)FalsetodayRetrieve the int date that represents today.get_workdaysRetrieve the work days (Monday~Friday) between two datesParameter: two int dates mark the start and end, both ends are inclusiveException:ValueErrorif the input date is not validReturn: number of workdaysExample:# Note: 2022-01-03 is Monday>>>get_workdays(20220102,20220108)5>>>get_workdays(20220102,20220107)5>>>get_workdays(20220102,20220106)4
Package: intecomm-edc
intecomm-edcControlling chronic diseases in Africa: Development and evaluation of an integrated community-based management model for HIV, Diabetes and Hypertension in Tanzania and Uganda (INTE-COMM study)Liverpool School of Tropical MedicineUniversity College London (UCL)http://www.isrctn.com/ISRCTN15319595See alsohttps://github.com/clinicedc/edcDjango 4.2 / python 3.11EDC (see setup.cfg for version)We run live and UAT on Ubuntu with nginx/gunicorn/mysql 8.1Basic installcondacreate-nedcpython=3.11condaactivateedcgitclonehttps://github.com/intecomm-trial/intecomm-edc.git~/appscd~/appspipinstall-U.pythonmanage.pymigrate# run migrate a second time for post-migrate signalspythonmanage.pymigrateRandomizationGroups of patients are randomized to community integrated care (intervention) or facility integrated care (control).A patient group is represented by thePatientGroupmodel. APatientGroupmodel instance contains patients who are represented byPatientLogmodel instances.Before a group is “ready” to randomize:the group membership must meet the ratio of HIV, HTN, DM or multi-morbidity patients.the group must meet the minimum group size.all patients must be screened as eligible and consentedIf “ready”, the patient group is randomized when thePatientGroupmodel instance saves succcessfully
with fieldrandomize_nowset to YES.Randomization occurs in the signalrandomize_patient_group_on_post_save. The signal
leaves most of the work to the classRandomizeGroup.RandomizeGroupcalls it’srandomizemethod does the following:The group is randomized to intervention or control;PatientGroupmodel instance is allocated agroup_identifier;EachPatientGroupmodel instance in the group is updated with thegroup_identifier;EachSubjectConsentmodel instance in the group is updated with thegroup_identifier(which triggers another signal associated with the subject consent. This signal puts the subject on schedule);EachRegisteredSubjectmodel instance in the group is updated with thegroup_identifier;
Package: intecomm-rando
intecomm-randoRandomization forINTECOMMtrialA dependency of theINTECOMMtrial EDC.TheINTECOMMtrial is a cluster randomized trial where the unit of randomization is the patient group.At screening, data for individual potential participants are stored in theintecomm_screening.PatientLogmodel.
Eligible individual potential participants (modelPatientLog) are added to a patient group (modelintecomm_group.PatientGroup).The data flow is PatientLog -> SubjectScreening -> if eligible -> SubjectConsentIdeally, for a patient group to be considered for randomization, the group must contain
between 9-14 screened and consented members where a count of chronic conditions of those in the group meets an
approximate ratio of 2 : 1; that is, 2(DM/HTN) : 1(HIV). The site coordinators may override these values.Once a PatientGroup is ready to randomize, the site staff open thePatientGroupform and click “randomize”.In the background, theRandomizerclass calls its methodrandomize_group.randomize_grouppicks the next
available record from the randomization_list (‘’intecomm_rando.RandomizationList``) and inserts a uniquegroup_identifiervalue.
A records is available ifgroup_identifierhas not been set. Ordering is ascending bysid.The PatientGroup is given its newly allocatedgroup_identifier. The subjects in this group may now be
followed longitudinally starting with visit 1000.Thegroup_identifier, for subjects in a PatientGroup, is updated on the PatientLog record as well.TheRegisteredGroupmodel holds thesidtogroup_identifierrelationshipTheRandomizationListmodel holds thesidtoassignmenttogroup_identifierrelationshipPatientLoglinks group_identifier and subject_identifierSee also tables:
•       Intecomm_rando_registeredgroup
•       Intecomm_rando_randomizationlist
•       intecomm_screening_patientlog
•       intecomm_group_patientlog
Package: intec-units
Standard physical units are imported fromintec.units.sifromintec.units.siimportMETER,MILLIMETER,NANOMETER,AMPERE,VOLT,OHMAQuantityis created by multiplying a number (the magnitude) and aUnitd=1550*NANOMETERprint(d)1550.000000 nmdLengthQuantity( 1.5500000000e+03, nm )Quantities of the same physical dimension can be added or substracted1*METER+5*MILLIMETERLengthQuantity( 1.0050000000e+00, m )The resulting quantity gets the unit of the first term.print(5*MILLIMETER+1*METER)1005.000000 mm1*METER+1*AMPERE---------------------------------------------------------------------------

TypeError                                 Traceback (most recent call last)

<ipython-input-6-26114287a935> in <module>
----> 1 1*METER + 1*AMPERE


TypeError: Cannot convert unit [A] to unit [m]Quantities of the same physical dimension can be comparedp=1*VOLT*2*AMPEREprint(p)2.000000 V.Afromintec.units.siimportWATT,MILLIWATT,DBMp==2*WATTTrue3*VOLT/AMPERE>2*OHMTrueUse thetomember function to convert a quantity to a related unit.print(p.to(MILLIWATT))print(p.to(DBM))2000.000000 mW
33.010300 dBmfromintec.units.siimportMETER,KILOMETER,SECONDfromintec.units.extraimportHOURspeed=10*METER/SECONDprint(speed.to(KILOMETER/HOUR))36.000000 km/hUse the membermagnitudeormto retrieve the numerical value of a quantityspeed.magnitude10.0speed.m10.0Use the memberunitoruto retrieve the unit of a quantityspeed.unitUnit( 'm/s' [m/s] )speed.uUnit( 'm/s' [m/s] )For (wave)lengths there is a convenience function to convert to frequency.fromintec.units.siimportNANOMETER,HERTZλ=1550*NANOMETERλ.to_frequency()FrequencyQuantity( 1.9341448903e+02, THz )λ.to_frequency(HERTZ)FrequencyQuantity( 1.9341448903e+14, Hz )For photonic experiments, useintec.units.photonicto import all common units in one fell swoopfromintec.units.photonicimport*from .si import METER, MILLIMETER, MICROMETER, NANOMETER, PICOMETER, FEMTOMETER
from .si import WATT, MILLIWATT, MICROWATT, DBM
from .si import VOLT, MILLIVOLT, MICROVOLT
from .si import AMPERE, MILLIAMPERE, MICROAMPERE
from .si import HERTZ, KILOHERTZ, MEGAHERTZ, GIGAHERTZ, TERAHERTZ
from .si import SECOND, MILLISECOND, MICROSECOND
from .si import KELVIN, CELCIUS
Package: inte-edc
inte-edcIntegrating HIV, Diabetes and Hypertension Services in Africa: A Cluster - Randomised Trial in Tanzania and Uganda: INTE Africa TrialLiverpool School of Tropical Medicinehttps://www.isrctn.com/ISRCTN43896688See alsohttps://github.com/clinicedc/edcInstallationTo setup and run a test server locallyYou’ll need mysql and Redis. Create the databasemysql-Bse'create database inte character set utf8;'Create and activate a virtual environmentcondacreate-nedcpython=3.9condaactivateedcClone the main repo and checkout mastermkdir~/appcd~/appgitclonehttps://github.com/inte-africa-trial/inte-edc.gitcd~/app/inte-edcgitcheckoutmasterCopy the test environment filecd~/app/inte-edcgitcheckoutmastercp.env-tests.envEdit the environment file (.env) to include your mysql password in theDATABASE_URL.# look for and update this lineDATABASE_URL=mysql://user:password@127.0.0.1:3306/inteContinue with the installationcd~/app/inte-edcgitcheckoutmasterpipinstall-U-rrequirements.txtpythonmanage.pymigratepythonmanage.pyimport_randomization_listpythonmanage.pyimport_holidaysEnsure Redis is running$redis-clipingPONGCreate a user and start uprunservercd~/app/inte-edcgitcheckoutmasterpythonmanage.pycreatesuperuserpythonmanage.pyrunserverLogin:localhost:8000Once logged in, go to you user account and update your group memberships. As a power user add yourself to the followingACCOUNT_MANAGERADMINISTRATIONAEAE_REVIEWCLINICDATA_MANAGERDATA_QUERYEVERYONEEXPORTLABLAB_VIEWPHARMACYPIIRANDOREVIEWSCREENINGTMGUNBLINDING_REQUESTORSUNBLINDING_REVIEWERS
Package: integer
This package provides utilities for creating custom integer types.IntegerInheriting directly frominttype results in custom integer types where the results of operations are instances of int type.>>> class X(int): pass
...
>>> a = X(1)
>>> x = a + 1
>>> x
2
>>> x.__class__
<type 'int'>Integercan be used as a base class for custom integer types that preserve the type when performing operations.>>> from integer import Integer
>>> class X(Integer): pass
...
>>> a = X(1)
>>> x = a + 1
>>> x
2
>>> x.__class__
<class '__main__.X'>Subclasses can override thefinalize_valuesmethod in order to affect the final return value of operations whenever theintoperations returns anint.enumenumcan be used to declare an enumeration, which defines the enumeration type and its enumeration values in the global scope of the calling module.>>> from integer.enum import enum
>>> enum('RGB', RED=1, GREEN=2, BLUE=3, ALPHA=4)
>>> RGB
<class 'integer.enum.RGB'>
>>> RED
RED
>>> int(RED)
1
>>> RGB(1)
RED
>>> RGB(1) is RED
True
>>> RED, GREEN, BLUE, ALPHA, RGB(5)
(RED, GREEN, BLUE, ALPHA, RGB(5))The type defined byenumdoes not restrict the values that it can represent, it just provides a helpful string representation for the named values.
Package: integerbook
music-visualisationThis library converts sheet music in musicxml format to visualisations that refer to notes and chords with their relative position within the key of the song. More about how this notational system workshere.installationDownload pythoninstall theintegerbook packageusing pip:$ pip install integerbookDownload or copy the filerun.pyfrom the github repository to a folder on your computer, e.g.~/Documents/music-visualisation.running the codeIn the terminal, navigate to the folder whererun.pyis stored, e.g.~/Documents/music-visualisation.In the terminal, type:$ python run.py -s <path-to-song>e.g.$ python run.py -s "/Users/jvo/Documents/music-visualisation/example/Summertime.musicxml"This will convert the musicxml file you specified to a pdf and store it in the current folder.Further options include:-o set output directory  (without "/" at the end)-b for bassline output-l for printing lyrics-c for colouring notes according to circle of fifths-cn for printing chord notes-cp for printing chord progressions (no melody, 8 measures per line)-d  can be used to pass a custom settings dictionary. (most flexible) Seesrc/integerbok/settings.jsonfor the default settings.example musicxml filesIn the folder example, there are some musicxml files that can be used to try out the program.
Package: integer_encoding
A simple python module that encodes integers into arbitrary-base element
sequences.UsageEncoding:>>> import integer_encoding
>>> alphabet = 'abc123'
>>> encode = integer_encoding.encoder(alphabet)
>>> encode(0)
['a']
>>> encode(1)
['b']
>>> encode(2)
['c']
>>> encode(6)
['b', 'a']
>>> encode(1306)
['b', 'a', 'a', 'b', '2']
>>> encode(1307)
['b', 'a', 'a', 'b', '3']Decoding:>>> import integer_encoding
>>> decode = integer_encoding.decoder('abc123')
>>> decode('a')
0
>>> decode('b')
1
>>> decode('c')
2
>>> decode('ba')
6
>>> decode('baab2')
1306
>>> decode('baab3')
1307InstallingInstall from PyPI:$ pip install integer_encodingor you grab the source and run:$ python setup.py installTestsTo run the tests, first installtox:$ pip install toxthen runtoxfrom the project root directory:$ tox
Package: integer-gantt
integer-gantt** Requires the following external dependencies! you will need npm to install these!npminstall-gelectron@1.8.4orcaInfoI have a problem where I needed a relative gantt chart for a quick project proposal, nothing fancy.I couldn't find a way to generate a nice gantt chart without 'datetimes' on it!!I finally found a way to do it onstack overflowand decided to implement it in a nice little package in case I need it again.Literally the only thing this package does is create a gantt chart locally using ploty and input form a json file.I might add other fuctionality later, I might not!
Package: integerSequence
Python Integer SequencesDeveloped and maintained by Tyler R. Drury,This project is a pure python package,
allowing users to conveniently represent and generate common integer sequences, including:FactorialsPrime numbersCatalan numbersHoradam numbersPadovan numbersHofstadter numbersCollatz numbersPronic numbersLazy Caterer and Cake NumbersGeometric numbers(polygonal, polyhedral)Target PlatformPython 3.6, 64-bitUsefrom integerSequence import Horadam
from integerSequence import Fibonacci as fib
from integerSequence import getPrimes

p = getPrimes(1000) #calculate all primes up to 1000
print(p)

h = Horadam(2,3,1,2)    #unnamed Horadam sequence
s = h.series(10)
print(s)

s = fib.series(20)
print(s)DownloadLatest compiled python files/wheels can be found on the Python Package Indexhere,
or developers can find the current Source Code at the GitHub repohere,
if you wish to contribute.Primary DeveloperTyler R. DruryAdditional ContributorsRelated ProjectsSimilar or related projects for various platforms can also be found hereLibrariesIntegerSequences-cppa compiled C/C++ library for generating common sequences of integersIntegerSequences-jsa Javascript library for generating common sequences of integers, for front-end web browsers useIntegerSequences-phpa PHP library for generating common sequences of integers, for back-end server useAdditional Online References and ResourcesThe OfficialintegerSequences-py ReferenceTheOnline Encyclopaedia of Integer SequencesAcknowledgementsNeil Sloane, founder of the Online Encyclopaedia of Integer Sequences
Package: integor
IntegORIntegOR is a framework based on scipy.optimize that aims to traduce an Operation Research problem that can be linearized to a binary integer linear problem, to solve it.The interest is the ability to easily define your variables as strings and to, from here, create easily constraints and cost vector.InstallationTo install the package, you can use pip:pipinstallintegorUsageSuppose you want to solve the following linear problem:importnumpyasnpdefJ(x):"""Function to minimize"""returnx[0]+2*x[1]+3*x[2]+4*x[3]deff(x):"""Inequality constraint. f(x) must be positive"""returnnp.array([x[0]+x[1]-1,x[2]+x[3]-1,x[0]+x[2]-1,])defg(x):"""Equality constraint. g(x) must be zero"""returnnp.array([x[1]+x[3]-1,])Importfromintegorimportset_variable_names,Variable,get_cost_matrix,solve_ilp,get_solutionSet variable namesset_variable_names(["x0","x1","x2","x3"])Define variables as python objectsx0=Variable("x0")x1=Variable("x1")x2=Variable("x2")x3=Variable("x3")Define the constraints from the variablesconstraint1=x0+x1>=1constraint2=x2+x3>=1constraint3=x0+x2>=1constraint4=x1+x3==1constraints=[constraint1,constraint2,constraint3,constraint4]Define the cost from the variablescost_matrix=get_cost_matrix(x0+2*x1+3*x2+4*x3)Specify integrality ie type of the solution : 0 for continuous, 1 for integer-boundedintegrality=np.ones(len(cost_matrix))*1# You can let this as it isSolve the problem# Solveres=solve_ilp(cost_matrix=cost_matrix,constraints=constraints,integrality=integrality)solution_vector=res.xprint(res)print("\nSolution vector: ",solution_vector)print("\nVerify that the solution satisfies the constraints:")verify(res.x)print("\nGet the solution as a dictionary:")print(get_solution(res.x))
Package: integra
IntegraSmall convenient IPC based onandPython-zeroconfYou can share your Python classes in Bonjour style!
(ln 164 lines of code only)How does it work?Server:from integra import ipc
import MySharedClass # Use anything
shared_class = MySharedClass()
ipc["shared_class"] = shared_class # We share it
while True:
    ...Client (any machine on LAN or localhost):from integra import ipc
remote_shared = ipc["shared_class"]
result = remote_shared.awesome_method()That's all, you find your class or service by name and make calls like it's local.
Please note that security is on your own.How to install?pip3 install integraORpip3 install git+https://github.com/pmus/integra.git#egg=integra
Package: integracije
IntegracijeThis package uses the graph drawing software Graphviz and engine dot to construct a graph showingthe interfaces between aplications and their components in a system as well asany additional information about them or the interfaces that connect them.It reads the data from an Excel file, which should include two sheets,'Seznam sistemov', containing information about aplications and their components, and'Tabela integracij', containing information about interfaces, that connect the aplications.Paket integracije s pomočjo programske opreme Graphviz in algoritma dot izriše graf aplikacij innjihovih komponent, ki jih povezujejo vmesniki. Informacije pridobi iz Excel datoteke z dvema listoma.Prvi list, imenovan 'Seznam sistemov', vsebuje seznam aplikacij in komponent aplikacij ter njihove lastnosti.Drugi list, 'Tabela integracij', vsebuje seznam vmesnikov in dodatne informacije o njih.Namestitevpip install integracijeimport integracijePrimer Excel datotekePodatki naj bodo zapisani v .xlsx datoteki z dvema listoma, Seznam sistemov in Tabela integracij. V Seznam sistemov so podatki o aplikacijah in njihovih komponentah, v Tabela integracij pa podatki o vmesnikih.V prvi vrstici obeh listov naj bodo navedena imena stolpcev. Med temi morajo v Seznam sistemov biti stolpec imen aplikacij in stolpec imen komponent aplikacij. V eni vrstici naj bo navedena samo ena aplikacija oz. komponenta. Komponente aplikacije z imenom X naj bodo zapisane v obliki X.ime_komponente. Tabela integracij naj ima v vrsticah navedene povezave med pari aplikacij oz. vmesnikov. Eden od stolpcev naj vsebuje izvore podatkov, drugi ponore in tretji smer toka podatkov. Oba lista lahko vsebujeta več stolpcev za dodatne podatke.Primer uporabeGraf se izriše s funkcijo integracije, ki ima naslednje parametre:podatki - pot do excel datotekeexcel_Aplikacije_stolpca - imeni stolpcev za aplikacije in komponente v obliki string ter ločeni z vejico, privzeti imeni sta 'Aplikacija/sistem' in 'Komponenta'dodatno_Aplikacije - imena stolpcev z dodatnimi informacijami o aplikacijah v obliki string ter ločena z vejico, privzeta vrednost je ""excel_Vmesniki_stolpci - imena stolpcev za izvore, ponore in smeri v obliki string ter ločeni z vejico, privzeta vrednost je "Izvor, Ponor, Smer"dodatno_Vmesniki - imena stolpcev z dodatnimi informacijami o vmesnikih v obliki string ter ločena z vejico, privzeta vrednost je ""output_format - format končne datoteke, ki gapodpira Graphviz, privzeto je "jpg"file_name - ime končne datoteke, privzeto je "Integracije"zdruzi_povezave - True, če naj bodo povezave z istimi krajišči v grafu združene, False sicer, privzeto je FalsePrimer uporabe:``import integracijeintgracije.integracije(r'pot do .xlsx datoteke', 'Aplikacija, Komponenta', \'Lastnik', 'Izvor, Ponor, Smer', 'Podatki', 'png', file_name="Primer")``
Package: integralapi
integral-python-sdkIntegral API Node LibraryThe Integral API Python library provides access to the Integral API from Python.DocumentationAPI documentation is available athttps://docs.integralapi.co/introduction.UsageBeta statusThis SDK is in beta, and there may be breaking changes between versions without a major version update.ContributingWhile we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggestopening an issuefirst to discuss with us!On the other hand, contributions to the README are always very welcome!