Saravanan666/pypi-org huggingface dataset:
Package: cgmzscore
Z scoreThis libray is Used for measuring Z score of Children (0-5 Years) based on standard provided by WHO 2006REQUIREMENTSPython 2.7.x, Python 3.x or laterINSTALLATIONpip install cgmzscoreEXAMPLE USAGEcalculate z score for weight vs agefromcgmzscore.src.mainimportz_score_wfascore=z_score_wfa(weight="7.853",age_in_days='16',sex='M')calculate z score for weight vs length/heightfromcgmzscore.src.mainimportz_score_wflscore=z_score_wfl(weight="7.853",age_in_days='16',sex='M',height='73')calculate z score for weight vs length/height and both wfl and wfh works samefromcgmzscore.src.mainimportz_score_wfhscore=z_score_wfh(weight="7.853",age_in_days='16',sex='M',height='73')calculate z score for length vs agefromcgmzscore.src.mainimportz_score_lhfascore=z_score_lhfa(age_in_days='16',sex='M',height='73')find child is SAM/MAM/Healthyfromcgmzscore.src.mainimportcalculate_sam_mamscore=calculate_sam_mam(weight="7.853",muac="13.5",age_in_days='16',sex='M',height='73')
Package: cgn-pytorch
Contact-GraspNet PytorchPytorch implementation of Contact-GraspNet. This repo is based heavily onhttps://github.com/alinasarmiento/pytorch_contactnet. Original Tensorflow implementation can be found at:https://github.com/NVlabs/contact_graspnetInstallation Instructionspip install cgn-pytorchUsage:import cgn_pytorchcgn_model, optimizer, config_dict  = cgn_pytorch.from_pretrained(cpu=False)Run The DemoClone this Repogit clone  https://github.com/sebbyjp/cgn_pytorch.gitInstall Dependenciespip3 install -r requirements.txtVizualizationWe're doing our visualizations in MeshCat. In a separate tab, start a meshcat server withmeshcat-serverFrom here you can runpython3 eval.pyTo visualize different confidence threshold masks on the grasps, use the--thresholdargument such as--threshold=0.8To visualize different cluttered scenes (8-12 tabletop objects rendered in pyrender from ACRONYM), use the argument--sceneand manually feed in a file name such as--scene=002330.npz.Your possible files are:002330.npz004086.npz005274.npzPredicting grasps on your own pointcloudsThe model should work on any pointcloud of shape (Nx3). For most consistent results, please make sure to put the pointcloud in the world frame and center it by subtracting the mean. Do not normalize the pointcloud to a unit sphere or unit box, as "graspability" naturally changes depending on the size of the objects (so we don't want to lose that information about the scene by scaling it).
Package: cgns-wrapper
IntroductionCGNS Wrapper (cgns_wrapper) provides you a Python interface forCFD General Notation System(CGNS), one of the
popular CFD data representations.cgns_wrapperis amodulewrapper ofpyCGNS. Particularly speaking,cgns_wrapperwrapspyCGNS.MAPascgns_wrapper.ioandpyCGNS.PAT.cgnslibascgns_wrapper.cgnslib.Then core motivation of this project is to glueCGNSand PyPI, so that people
can easily install it through pip.NOTEIf you already have manually configured and installedpyCGNS,
then this package has no benefits.NOTEThis package doesn’t require you installCGNS, but having it is
still useful and, in most cases, necessary.DocumentationPlease refer to originalCGNSandpyCGNSdocumentation.Installation$pipinstallcgns_wrapper--userLicenseMIT LicenseCopyright (c) 2018 Qiao Chen
Package: cgnxpyairpal
cgnxpyairpalPython Client/SDK for AirpalSynopsiscgnxpyairpal: Python Client/SDK to allow headless queries and response retrieval for Airpal.Code ExampleView the included example.pyMotivationAirpal (http://airbnb.io/airpal/) is a great WebUI/Front end for PrestoDB (https://prestodb.io/)One really nice thing Airpal does is create a method of User Access Control/logging/etc to the PrestoDB interface.Native PrestoDB clients will likely be more efficient, but this stack allows organizations to provide batch/scripting
access to the PrestoDB Via Airpal, while maintaining the nice UAC/etc that Airpal provides.RequirementsWorking Airpal serverPython modules:Requests -http://docs.python-requests.org/en/master/SSEClient -https://pypi.python.org/pypi/sseclientPandas (for example script only) -http://pandas.pydata.org/LicenseMITVersionVersionChanges1.0.0Initial Release
Package: cgohlke
This package installs the following Python libraries and scripts bycgohlke:akimachebyfitcmapfileczifilednacurvefcsfilesfmkricsdllimagecodecsimreglfdfileslucammolmassnetpbmfileoiffilepsdtagspsfptufileqdafileroifilesdtfiletifffiletransformationsuciwebauthvidsrc
Package: cgpacalculatorpsg
This python package is developed by Arjun K PSG ICE (20-24) which can be used for calculating the GPA and CGPA of the students
To calculate GPA pass a list in the format [Grade,Credits,Grade,Credits,……..] to the function gpapsgcalc()
To calculate CGPA pass a list in the format [CGPAUptoPreviousSem/GPA,……..] to the function cgpapsgcalc()Change Log0.0.1 (29/03/22)First Release
Package: cgp-bouncer
bouncerSimple email whitelist checker backed by the AWS Secrets ManagersetupregularEither addcgp-bouncerto your project requirements orpip install cgp-bouncerin a Python 3 virtualenv.for developmentInstead of the steps above clone the repo,cdinto the repo, and runpip install -e .andpip install -r requirements-dev.txtTo test, runtoxhow to usesetting up the whitelistGo to the AWS Console and find theSecrets Managerservice.SelectStore a new secret.For secret type selectOther type of secrets.Under theSecret key/valuetab enteremailas the key and a
comma separated (no spaces) list of whitelisted emails as the
value. SelectNext.Name your secret something descriptive, such ascommons/dev/whitelistand give it a description. SelectNext.Make sureDisable automatic rotationis selected. Then selectNext.Review your configuration and selectStore.adding someone to the whitelistGo to the AWS Console and find theSecrets Managerservice.Find the secret to which you want to add. For example, one might
search forcommons/dev/whitelist.UnderSecret value, selectRetrieve secret value. Then
selectEdit.Add your email withNO WHITESPACEto the comma separated list
under the keyemailand selectSave.using bouncer to check the whitelistUsing is simple!Here's an example>>>frombouncerimportBouncer>>>b=Bouncer('commons/dev/whitelist')>>>b.is_authorized('valid.email@example.com')True>>>b.is_authorized('evil.gnomes@example.com')FalseThis checks the AWS Secret Keeper calledcommons/dev/whitelistto see
if the usersvalid.email@example.comandevil.gnomes@example.comare in the whitelist.
Package: cgp-dss-data-loader
cgp-dss-data-loaderSimple data loader for CGP HCA Data StoreCommon Setup(optional)We recommend using a Python 3virtual environment.Run:pip3 install cgp-dss-data-loaderSetup for DevelopmentClone the repo:git clone https://github.com/DataBiosphere/cgp-dss-data-loader.gitGo to the root directory of the cloned project:cd cgp-dss-data-loaderMake sure you are on the branchdevelop.Run (ideally in a newvirtual environment):make developCloud Credentials SetupBecause this program uses Amazon Web Services and Google Cloud Platform, you will need to set up credentials
for both of these before you can run the program.AWS credentialsIf you haven't already you will need to make an IAM user and create a new access key. Instructions arehere.Next you will need to store your credentials so that Boto can access them. Instructions arehere.GCP credentialsFollow the stepshereto set up your Google
Credentials.Running TestsRun:make testGetting Data from Gen3 and Loading itThe first step is to extract the Gen3 data you want using thesheepdog exporter. The TopMed public data extracted
from sheepdog is availableon the release pageunder Assets. Assuming you use this data, you will now have a file calledtopmed-public.jsonMake sure you are running the virtual environment you set up in theSetupinstructions.Now you will need to transform the data into the 'standard' loader format. Do this using thenewt-transformer.
You can follow thecommon setup, then the
section fortransforming data from sheepdog.Now that we have our new transformed output we can run it with the loader.If you used the standard transformer use the command:dssload --no-dry-run --dss-endpoint MY_DSS_ENDPOINT --staging-bucket NAME_OF_MY_S3_BUCKET transformed-topmed-public.jsonYou did it!
Package: cgPriceQuery
cgPriceQuerycgPriceQuery is an abstraction layer for calling the CoinGecko Price Query API. Since the densest data from CoinGecko is typically returned hourly, this package interpolates prices to each block time.Query typesqueryPricesInDuration: Get price data at each block time from timet_0tot_1queryPriceAtTime: Get price data at timetqueryPriceCurrent: Get the current priceNetworksSupported networks are currently:ethereumpolygonarbitrumfantomAdditional networks are pretty trivial to add as long as they have a subgraph for block times and CoinGecko price feeds.SampleFor a sample, seesamples/sample.py
Package: cgpt
🤖 MAKE AI POWERED SEARCH INSIDE YOUR CLI 💻FeaturesAI conversation exactly the same as in openai websiteLAN supportDocker supportDevbox supportDescriptionscgptis aREPLtool that allows you to use AI directly in your favorite Terminal.cgptis based onCLICKfor creating beautiful command line interfaces in a composable way.Prerequisitiespython >=3.10openai API KEY :
You need to register on openai to receive your own api key , here :api_key.This tool is still usinggpt-3.5-turbo,gpt-4andgpt-4-turboare on the way. 😉Setup and Run🚀 Run in localYou can directly install the latest version from pypi.pip install cgpt$ cgptCGPT inside a Local Area NetworkYou can also use cgpt inside a LAN.You just need one Host (connected to internet) to be the server.Other Hosts (not connected to internet) can ALWAYS use the AI  asclient.For more information , lookhere.Run with DockerPull the image$ docker pull ainayves/cgpt:latestRun the docker image by using your openaiapi_key:$ docker run -e OPENAI_API_KEY="yourapikey" -i -t ainayves/cgpt:latestTo run the LAN mode in docker :$ docker run -e OPENAI_API_KEY="yourapikey" -i -t ainayves/cgpt:latest poetry run cgpt --lanDevbox supportTo make life easier for contributors , you can install and useDevbox.Then , run this command in the root directory of the project:$ devbox run start💚 FeedbackPlease feel free to leave feedback in issues/PRs.
Package: cgpy
cgpyA Python library for Cartesian genetic programming.Unit testsRunpython -m unittest discover -vin the root folder.Getting StartedInstall the package using pippip install cgpyThe following code creates a random CGP and evaluates its functionop_table = [Operation("+"), Operation("*"), Operation("sin")]

dims = 2
nr_of_parameters = 0
nr_of_nodes = 5
cgp = create_random_cgp(dims, nr_of_parameters, op_table, nr_of_nodes)

pnt = [0.5, 1.5]
print(cgp.eval(pnt))See more examples in the example folder and the documentation atwww.cgpy.orgCgpy is developed by Viktor Wase with contributions and assistance from John Brynte Turesson and Johannes Wennberg.
Package: cgr
cgSimple yet powerful code generator.
Make use of your shell as possiable as cg can.Pity, the name cg is taken by others. usecgrin cmdline. maybe you shouldalias cg=cogeCompare to hygen, yo.yo is way too slow and complicated.hygen pollutes all template files, and only support ejs.What I only need:template is runable as normal prj. No more $placehold$ stuff.instinct command follows the folder path.respect .gitignore.quick project to template and vice versa.prompt available.API designwhich one you prefer?# no slash
cg js react oldkey:newkey :newkey2 @:destname 

# with slash
cg js/react oldkey:newkey :newkey2 @:destnameScenario1cgjsreactoldkey:newkey:newkey0:newkey1@:destnamecopy $CG_TMPLS/js/react to $PWD/destnamechange all names from oldkey to newkey,  from  CG_ARG__0 to newkey0 ,from  CG_ARG__1 to newkey12cgjsreactJust copy $CG_TMPLS/js/react to $PWD/app
Package: cgrep
cgrepA command line utility to grep for blocks of textThis tool displays a block of text that matches a regex.Usageusage: cgrep [-h] [-k PATTERN] [-i] [-v] [--color] PATTERN [FILE [FILE ...]]

grep blocks of text.

positional arguments:
  PATTERN               pattern to grep for
  FILE                  file(s) to grep.

optional arguments:
  -h, --help            show this help message and exit
  -k PATTERN, --block-marker PATTERN
                        regex pattern describing the start of a block
                        (default=^$)
  -i, --ignore-case     ignore case distinctions
  -v, --invert-match    select non-matching blocks
  --color               use markers to highlight the matching stringsExampleGiven the following file,2018-10-05
Nothing interesting happened.

2018-10-06
cgrep released on github.

2018-10-07
Nobody knows what the future will bring.Running cgrep on the file produces the following output:$cgrep2018-10-06diary.txt2018-10-06
cgrepreleasedongithub.By default, ablockbegins and ends with an empty line.
This default can be changed with the-koption.Footnotescgrep was inspired by mgrep.  mgrep was (is?) a UNIX command line tool to grep
emails on UNIX accounts, stored as flat files in a format called "mbox".
mgrep-ing a pattern in an mbox displayed the entire email containing the
pattern.  cgrep is a generalized version of the mgrep that can grep for any
block of text and not just emails in an mbox.  Passing-k '^From 'option to
cgrep is practically equivalent to mgrep.The "c" in cgrep is largely historical.  It originally stood for "context".
Package: cgroupspy
cgroupspyPython library for managing cgroupsThe library provides a pythonic way to manage and represent cgroups. It provides interfaces that convert
python objects to cgroups compatible strings and vise versa.Treescgroupspy has a couple of ways to represent the cgroups filesystemAs a tree - this is the most basic and generic way to represent them. You basically construct it from all
the directories in the cgroups root.A grouped tree - that has access to all cgroup partitions with the same name, on the same level. For example -
'machine' partition in memory, cpuset, cpus, etc cgroups. All these attributes are
accessed via machine.cpus, machine.cpuset, etc.A VMTree - a subclass of grouped tree with utilities for simple management of libvirt guestsExample usage#Import the trees module, which contains a tree representation of cgroups>>>fromcgroupspyimporttrees# This is the most basic type of cgroup tree. It models the filesystem.>>>t=trees.Tree()# It has a root which is of type Node>>>t.root<Node/># And the root has children>>>print(t.root.children)[<Node/hugetlb>,<Node/net_prio>,<Node/perf_event>,<Node/blkio>,<Node/net_cls>,<Node/freezer>,<Node/devices>,<Node/memory>,<Node/cpuacct>,<Node/cpu>,<Node/cpuset>,<Node/systemd>,<Node/cgmanager>]# You can for example get the cpuset>>>cset=t.get_node_by_path('/cpuset/')>>>cset<Node/cpuset># The controller used for this cgroup is a CpuSetController>>>cset.controller<cgroupspy.controllers.CpuSetControllerobjectat0x7f63a3843050># Which can for example show you the cpu pinning>>>cset.controller.cpusset([0,1])# You can create a cgroup>>>test=cset.create_cgroup('test')<Node/cpuset/test># See its cpu restrictions>>>test.controller.cpusset([0,1])# And change them>>>test.controller.cpus=[1]# The tasks in this cgroup are now restricted to cpu 1>>>test.controller.cpusset([1])Another example with the VMTree - for managing libvirt guests>>>fromcgroupspy.treesimportVMTree>>>vmt=VMTree()>>>print(vmt.vms){u'1ce10f47-fb4e-4b6a-8ee6-ba34940cdda7.libvirt-qemu':<NodeVM1ce10f47-fb4e-4b6a-8ee6-ba34940cdda7.libvirt-qemu>,u'3d5013b9-93ed-4ef1-b518-a2cea43f69ad.libvirt-qemu':<NodeVM3d5013b9-93ed-4ef1-b518-a2cea43f69ad.libvirt-qemu>,}>>>vm=vmt.get_vm_node("1ce10f47-fb4e-4b6a-8ee6-ba34940cdda7")>>>print(vm.cpu.shares)1024>>>print(vm.cpuset.cpus){0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}>>>print(vm.memory.limit_in_bytes)25603080192>>>print(vm.children)[<NodeControlGroupvcpu1>,<NodeControlGroupvcpu0>,<NodeControlGroupemulator>]>>>print(vm.path)/machine/grey/1ce10f47-fb4e-4b6a-8ee6-ba34940cdda7.libvirt-qemu>>>vcpu1=vm.children[0]>>>print(vcpu1.cpuset.cpus){1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}>>>vcpu1.cpuset.cpus={1,2,3}>>>print(vcpu1.cpuset.cpus){1,2,3}Licensenew BSD licence
Package: cgroupy
cgroupycgroupy is a python module that provides a simple interface for managing cgroupsInstallationYou can installcgroupyusing pip:pip install cgroupyUsagecgroupyimpelemets acgroupobject. This object can be used to both create a new cgroup, and to interact with an existing one.  When you initialize acgroupobject, you cand specify the CPU and memory limits you wish to set. Memory is specified in megabytes, and CPU limits are specified in CPU shares/megahertz.Once acgroupobject is initialized, you can check if it exists, create it if it does not, run processes inside it, and destroy it like so:>>> from cgroupy import cgroup
>>> c = cgroup('test', memory=1000, cpu=1000)
>>> c.exists
False
>>> c.setup()
>>> c.exists
True
>>> process = c.execute('echo hello world')
>>> print(process.communicate())
(b'hello world\n', b'')
>>> c.teardown()
>>> c.exists
FalseIN addition to thecgroup.executemethod that lets you run an arbitrary command inside of your cgroup, you can add a running PID to the cgroup, or launch new processes from python and add them:>>> from cgroupy import cgroup
>>> import multiprocessing
>>> import time
>>> def test():
...   time.sleep(150)
... 
>>> c = cgroup('test')
>>> c.setup()
>>> p = multiprocessing.Process(target=test)
>>> p.start()
>>> c.add_pid(p.pid)
>>> c.add_pid(p.pid)
>>> c.tasks
{'17202'}
>>> p.pid
17202withsyntax is also supported for automated setup and teardown:>>> with cgroup('test', memory=1000, cpu=500) as c:
...   c.execute('echo hello world')
 
(b'hello world\n', b'')
Package: cgr-pdfextract
CGR-PDFEXTRACTEste paquete consta de dos librerias:Extrae informacion de un solo archivo del "Informe de Control Posterior"Extrae informacion de un csv donde se ubican los urls de cada "Informe de Control Posterior"InstalacionRequerimientosPara el correcto funcionamiento del paquete y sus respectivos modulos, es necesario tener instalado los siguientes paquetes adicionales:osretimeglobrequestspdfplumberpandasIniciamos la instalacion>> pip install cgr-pdfextractComo usarlo1.- Extraer informacion de un solo informe>> from cgrextract import pdfextractor 

>> pdfextractor(url, nomb_exp)Donde:url     : es el valor de la url donde se aloja el informe de controlnomb_exp: es el nombre que daremos al archivo que se generaraLuego de la ejecucion del modulo se generara un archivo ".csv" que tendra el siguiente formato "cgr_[nomb_exp].csv", este archivo estara alojado en el directorio de trabajo donde se viene trabajando.Ejemplo:>> from cgrextract import pdfextractor 

>> url = 'https://s3.amazonaws.com/spic-informes-publicados/resumen/2021/10/2021CPO043200043.pdf'

>> nomb_exp = 'informe'

>> pdfextractor(url, nomb_exp)2.- Extraer informacion de un csv>> from cgrextract import pdfextractor_all

>> pdfextractor_all(nomb_arch, col_url, nomb_exp, registros)Donde:nomb_arch: nombre del archivo "csv" donde se ubican la lista de los informes de control con sus respectivos urls.col_url  : nombre de la variable donde se encuentran las urls donde se ubican los resumenes de los informes de control.nomb_exp : nombre que le asignamos al archivo que consolidara la informacion de todos los informes de control.registros: cantidad de informes de control que se quiere trabajar.Luego de ejecutar el modulo, se creara una carpeta con el nombre "pdf_extraccion" en donde se almacenara el archivo que consolide la informacion de los resumenes de los "Informes de Control Posterior" procesados.Ejemplo:Para el ejemplo, es necesario descargar el archivo "informe_CGR.csv" (https://github.com/JelsinPalomino/Coordenadas-Geograficas/blob/master/informe_CGR.csv)>> from cgrextract import pdfextractor_all

>> nomb_arch = 'informe_CGR.csv'  

>> col_url   = 'resumen'

>> nomb_exp  = "informes_CGR_nacional"

>> registros = 8

>> pdfextractor_all(nomb_arch, col_url, nomb_exp, registros)LicenciaEste repositorio esta autorizado bajo la licencia MIT. Ver LICENCIA para mas detalles.
Package: cgrputil
cgrputilcgrputilis python library to calculate cpu utilisation of code over specific time interval inside docker container.Usage of the library can vary, Eg. Think about the use case where you want to know how much specific function consume a cpu over specific time and on the basis of that you want to bill the client or draw charts to understand the growing trend of function.I was struggling with the same problem, & searched all over internet. But i didnt get anything solid,
& all of the docs, the repos i viewed, code i read, almost pointed to docker repo which had calculation formula.
So seeing the problem & number of resources available for such typical problem i decided to create the library.
I wanted solution which is very easy to use and focus on giving end result, so i tried it making as simple as i could.
I hope this helps :) .InstallationUse the package managerpipto install cgrputil.pipinstallcgrputilUsageimportcgrputil'''Class instantiation expects default param, which will be return in case of any failurewhile reading, calculating cpu usage. We suggest to send this value as maxm number ofcores allocated to container.This value can be pass in two ways either passing it while class instantiation, which is inexample below i.e 3 or setting it inside env variable `RES_CPU_LIMIT`.Library will fist check for the value pass and then for the env variable, on of them is mandatoryelse exception will be raised.'''cpu=cgrputil.cpuutilisation(3)#From this point, it will calculate the cpu utilisationcpu.start_time()activity_you_want_to_calculate_cpu_usage()#Until this point cpu usage will be calculatedcpu.end_time()'''This will return the aprox cpu cores used while executing in between start time and end time.Return format is float. So if it returns 2.3 that means above function have consumed 2.3 coresout of all the cores available on the host or you can say 2.3 cores out of 3cores (3 assuming maximum cores allocated to container).Function returns two values, first is list of errs or exception occured while calculating cpu usage.Second the actual usage value. If the errs list is not empty it will most likely to return thedefault value passed while initiating the class. Ex. cpu = cgrputil.cpuutilisation(3) which is 3 here.'''errs,cores_used=cpu.get_core_utilisation()iferrsisnotNone:forerrinerrs:print(err)print('Utilisation : ',cores_used)else:print('Utilisation : ',cores_used)ContributingPull requests are welcome. For any changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
Package: cgrspy
CellML Generics and Reflection Service for Pythoncgrspy is a Python interface to the CellML API, and allows you to work
with mathematical models in CellML formats from in Python.The binding makes use of the CellML Generics and Reflection Service
(CGRS) to provide dynamically-typed Python bindings.To use this binding, you must first obtain a build of the CellML API
that includes the CellML Generics and Reflection Service; CellML API
version 1.10 and earlier do not include this support.Changelog1.3.0 (2018-12-04)Correct a typo with the Python 3 module creation function.1.2.0 (2018-08-01)Provide Python 3 support.1.1.1 (2012-10-14)Various fixes.1.0.0 (2012-02-07)Initial release.
Package: cgs
CGS APICommand line tool in python to place & update reservations at Cégep Sainte-Foy gym.InstallingpipinstallcgsUsageimportcgs# login and create a reservationcgs.login_create(username,password,uid,scheduleId,resourceId,day,starthour,endhour)Command line usageIn order to get started you will need to first set matricule & password and run--get-uidto fetch uid (make sure that your matricule & password are correct else you will not be able to get your uid).cgsconfig--matyour_matricule
cgsconfig--pwdyour_password
cgsconfig--get-uidverify credentials with:cgs config --showlist options with:cgs --helpex: create reservation at 2023-01-12 at 12:00 (time range is 0-24)cgscreate-d2023-01-12-t12list possible flags with:cgs create --helpContributingFeel free to contribute!  DM me on twitter@msa720360if you have any questions. Don't hesitate to report issues if you see bugs.