Saravanan666/pypi-org huggingface dataset:
Package: college-football
college-footballPython package to interact with college football player statistics.college-footballpulls data fromSports Reference's college football site. This package is intended for interactive use in formats like Jupyter notebooks - an example is included in theexamplesdirectory.The current version of the package only works with individual statistics, not overall team information. This functionality may be added in future versions.Please be considerate when using this package to pull data, do not overwhelm Sports Reference's servers with quick requests.
Package: college-scorecard
scorecardA python library for collegescorecard.ed.govGetting StartedBefore you do anything, you're going to need an API key. You can apply for onehere.Then import theScoreCardclass.fromscorecard.apiimportScoreCardCreate aScoreCardinstance.sc=ScoreCard(API_KEY='your api key')Search for a collegecolleges=sc.search('Howard')search()will return a list ofCollegeobjects.You can also search for a specific college using it's id.howard=sc.search(id=131520)For further information you can read thedocumentation
Package: coll-filter
fromcfimportCollFilterif__name__=='__main__':data=read_data(train_path)data=pre_process(data)# return [(user_id: Any, item_id: Any, float),]cf=CollFilter(data)ucf=cf.user_cf()# return {user_id: [(item_id, score),],}icf=cf.item_cf()# return {user_id: [(item_id, score),],}cf.release()
Package: collider-check
Collider-check PackageOverviewA small package that provides functions to check the observables in a collider, using a collider
built withXsuiteas input (must be a json file). Very useful for
debugging purposes before/after tracking, and used as a backend of thesimulation dashboard.InstallationThe package is available from PyPI, so you can install it with pip:pipinstallcollider-checkUsageYou can import the package in your python script and load a collider with:importcollider_checkcheck=collider_check.from_json("path/to/collider.json")To get a quick summary of the collider observables, use:check.output_check_as_str('output.txt')
Package: collider-dashboard
Collider DashboardA Dash application to visualize the observables and parameters of a collider built and configured with Xsuite.InstallationThe dashboard can be installed from PyPI with pip:pipinstallcollider-dashboardThis will install the required packages and build the application. If you haven't done it already, it is recommended to prebuild the Xsuite kernel to gain some computation time:xsuite-prebuildUsageFor personal usage, the simplest way to use the dashboard is to run the package as a development server from the command line, providing a few arguments:python-mcollider_dashboard--collider-pathpath_to_collider.json--filling-pathpath_to_scheme.json--port8080--force-reload--ignore-footprint--full-twiss--debug--collider-path, or-c, sets the path to the collider configuration file. Default value to the path of a dummy collider used for testing.--filling-path, or-f, sets the path to the filling scheme, instead of using the one in the collider configuration file. Optional.--port, or-p, sets the port on which the dashboard will be deployed. Default value to `8080``.--force-reload, or-r,  sets a boolean indicating whether the collider dashboard data should be reloaded if already existing. Optional.--ignore-footprint, or-i, sets a boolean indicating whether the footprint should be ignored to gain computation time. Optional.--full-twiss, or-t, sets a boolean indicating whether the Twiss/Survey tables should be computed fully (not removing duplicates and entry/exit elements), at the expense of computation time. Optional.--debug, or-d, sets a boolean indicating whether the dashboard should be run in debug mode. Optional.After computing some temporary variables (this may take a while the first time), this will deploy a local server and open the dashboard in a browser window.Alternatively, one can import the dashboard as a module and use it in a custom script:# my-awesome-dashboard.pyfromcollider_dashboardimportbuild_appapp,server=build_app(path_to_collider.json,path_scheme=path_to_scheme.json,port=8080,force_reload=False,ignore_footprint=False,debug=False,simplify_tw=True)The dashboard can then be deployed e.g. with gunicorn:gunicornmy-awesome-dashboard:server-b:8080Note that, as the dashboard deals with global variables, it is not thread-safe. It is therefore recommended to run it with a single worker (it's the case by default).
Package: colliderscope
Visualise your high energy physics (HEP) data with colliderscope!FeaturesProvides utilities forinteractive HTML visualisations of whole event records as directed acyclic
graphs (DAGs)scatter plots of particles across the pseudorapidity-azimuth planecreating, visualising, and fitting to fixed memoryHistogramobjectsInstallationpip install colliderscopeMore information on the API is available in thedocumentation
Package: collides
collision detection for vehicles with uncertainty in the position represented as a gaussian distribution
The implementation is based on an approximate but quick and accurate method.import collideFunctions:collide.collides(x1, y1, x2, y2, L1, W1, theta1, L2, W2, theta2)collide.plot(x1, y1, x2, y2, L1, W1, theta1, L2, W2, theta2)collide.collides(x1, y1, x2, y2, L1, W1, theta1, L2, W2, theta2, cov1, cov2, method, sample_size)variables:x,y: positionL,W: length and widththeta: angle of the vehicle in radianIn case of uncertinity:define cov1, cov2: 2x2 arraymethod: ‘s’:sampling with sample_size(has default value of 100), ‘g’ euclidean gaussian distribution, ‘e’ epsilon shadowsource-code:https://github.com/rashid1844/collides/Change Log0.0.1 (12/10/2020)First Release0.0.2 (13/10/2020)README changes0.0.3 (13/10/2020)README changes
Package: collins-client
To install this package:> python3 -m pip install collins-clientTo use this package:> import collins_client
> client = collins_client.CollinsClient(<username>, <password>, <host>)From there you can make any of the calls needed for the functionality of the collins api.When dealing with multiple attributes, you should be able to pass a list of values.
Say you want to find assets with a certain hostname and a primary role.> client.asset_finder({‘attribute’: [‘HOSTNAME;example.tumblr.net’, ‘PRIMARY_ROLE;TUMBLR_APP’]})
Package: collist
collistis a simple module which provides the functioncollist(), the single purpose of which is to columnate lists of
output for printing to the terminal. It is very much like the unix
commandcolumn, but it works on python iterables. This package also
exports the commandcolswhich is similar tocolumnbut works
better (on my system), though it has fewer options; seecols--help.The program uses thetputcommand internally, and therefore will not
work with Windows and other strange, non-POSIX operation systems.Monkey Patchcollistinto the Python Interactive PromptThe Python interactive prompt print the representation of the return
value of any expression you give it.  If that return value is a list,
dictionary, or tuple, It returns the literal that will produce the
object.When these collection objects get rather longer, printing them sucks.collistis designed to make lists of things look better.collisthas arepresentationfunction which will output a nicely columnated
repr of a python dictionary, list or tuple. This repr is a valid python
literal.In order to get this behavior in the standard interactive prompt or
bpython, add this to your ~/.pystart:importsys# if you haven't already.fromcollistimportdisplayhooksys.displayhook=displayhookThen, you’ll get nicely columnated list, tuples and dictionaries back in
the interactive prompt.>>>[iforiin('foo bar bing '*15).split()]['foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing','foo','bar','bing']Nice! This is what the people want. There is a bug at the moment where
the terminal size is stuck at whatever it was when the interactive
prompt was started. I assume this has something to do withtputgetting the terminal size from sterr, but I’m not really sure. If
anyone has a fix, I will be glad to accept a patch.Also this patch won’t work in ipython, since it has it’s own replacement
for displayhook, of which I know nothing. It prints nicely already. kind
of.
Package: collocater
CollocaterCollocater is a Python library for retrieving the collocations to be found in a message. The ontology it operates on has been scraped from theOnline OXFORD Collocation Dictionary.Collocater can be added as a pipeline component to SpaCy's preprocessing pipeline, so that a messages' collocations can be retrireved the same way its named entities can.Check outCollocations Finderto learn more about the project.Installationpipinstallcollocater--no-depsUsagefromcollocaterimportcollocaterimportspacyfrompprintimportpprintcollie=collocater.Collocater.loader()nlp=spacy.load('en_core_web_sm')nlp.add_pipe(collie)text="If this isn't a bunch of beautiful flowers I don't know what is!"doc=nlp(text)print(doc._.collocs)# returns [bunch of, bunch of beautiful flowers, beautiful flowers]#Tokens with associated collocations in text:colls=[(col.text,col.start_char,col.end_char,col.label_)forcolindoc._.collocs]pprint(colls)# returns [#                          ('bunch of', 16, 24, 'bunch_noun__prep'),#                          ('bunch of beautiful flowers', 16, 42, 'flower_noun__quant'),#                          ('beautiful flowers', 25, 42, 'flower_noun__adj')#                          ]print(collie(text))#{'beautiful flowers': {'coll_type': 'flower_noun__adj', 'location': [7, 9]},# 'bunch of': {'coll_type': 'bunch_noun__prep', 'location': [5, 7]},# 'bunch of beautiful flowers': {'coll_type': 'flower_noun__quant',#                                'location': [5, 9]}}ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: collocation
CollocationInstallationpipinstallcollocationUsagefromcollocationimportCollocation# Prepare corpus data# https://yongfu.name/collocation/sampled_PTTposts.txtcorpus=[]withopen("sampled_PTTposts.txt",encoding="utf-8")asf:forsentinf.read().split("\n"):ifsent.strip()=="":continuesentence=[]fortkinsent.split("\u3000"):iftk=="":continuesentence.append(tk)corpus.append(sentence)>>>corpus[:7][['物品','名稱','：','學生證'],['拾獲','地點','：','大一女','前'],['拾獲','時間','：','6','/','21'],['18',':','20','左右'],['物品','描述','：','就','一','張','學生證'],['聯絡','方式','：','站','內','信'],['其他','說明','：','請','失主','或','朋友','速速','聯絡','喔']]# Initializec=Collocation(corpus,left_window=3,right_window=3)# Query>>>c.get_topn_collocates("[臺台]灣",cutoff=3,n=3,by="MI",chinese_only=True)[('臺灣','國立',{'MI':9.801006087045614,'Xsq':3560.8618187084653,'Gsq':46.973839463946646,'Dice':0.04519774011299435,'DeltaP21':0.0277504097342154,'DeltaP12':0.12108001346126511,'RawCount':4}),('臺灣','聯盟',{'MI':9.064040492879409,'Xsq':2133.3656286224623,'Gsq':42.68555772916195,'Dice':0.04020100502512563,'DeltaP21':0.0277296477701336,'DeltaP12':0.0725951622338306,'RawCount':4}),('臺灣','大學',{'MI':8.428314878476366,'Xsq':3768.760643213294,'Gsq':107.96714978953916,'Dice':0.05804749340369393,'DeltaP21':0.07617749434551055,'DeltaP12':0.046682984348090525,'RawCount':11})]# Acess documentation of parametershelp(c.get_topn_collocates)Custom Association Measuresfrommathimportlog2fromcollocation.associationimportFisherAttract,DicedeflogDice(O11,O12,O21,O22,E11,E12,E21,E22):D=Dice(O11,O12,O21,O22,E11,E12,E21,E22)return14+log2(D)c.association_measures=[FisherAttract,logDice]>>>c.get_topn_collocates("[臺台]灣",cutoff=3,n=3,by="logDice",chinese_only=True)[('臺灣','大學',{'FisherAttract':56.04305766162403,'logDice':9.893377580466206,'RawCount':11}),('臺灣','國立',{'FisherAttract':25.040705008265565,'logDice':9.532394449917003,'RawCount':4}),('臺灣','聯盟',{'FisherAttract':22.922605012581965,'logDice':9.36337537945635,'RawCount':4})]
Package: colloid-polymer-phase-diagram
colloid_polymer_phase_diagramPhase behaviour of Colloid+Polymer mixture according to generalized free volume theory
see Gerard J Fleer and Remco Tuinier, Advances in Colloid and Interface Science 143, 1-47 (2008).The code was originally written by Mathieu Leocmach in packagecolloids.InstallThe most convenient way would be:pip colloid_polymer_phase_diagramHow to Use Itfromcolloid_polymer_phase_diagramimportphaseqR=0.072q=phase.qR2q(qR)fc,pivc=phase.CarnahanStarling().critical_point(q)print(f'At critical point colloid volume fraction is{phase.f2vf(fc):0.3f}and osmotic insertion work is{pivc:0.3f}kT')importnumpyasnppivs=1./np.linspace(1./pivc,1./3500)sp=phase.CarnahanStarling().spinodalGL(q,pivs)plt.figure('reservoir')plt.plot(phase.f2vf(sp[:,1]),sp[:,0])plt.plot(phase.f2vf(sp[:,2]),sp[:,0])plt.scatter(phase.f2vf(fc),pivc,c='k')plt.xlabel(r'$\varphi$')plt.ylabel(r'$\Pi v$')plt.figure('experimental')plt.plot(phase.f2vf(sp[:,1]),phase.piv2y(sp[:,0],qR)*phase.alpha(sp[:,1],q))plt.plot(phase.f2vf(sp[:,2]),phase.piv2y(sp[:,0],qR)*phase.alpha(sp[:,2],q))plt.scatter(phase.f2vf(fc),phase.piv2y(pivc,qR)*phase.alpha(fc,q),c='k')plt.xlabel(r'$\varphi$')plt.ylabel(r'$y$')plt.ylim(0,1.4)Seenotebook/phase diagram.ipynbfor more complete examples.
Package: colmap-wrapper
COLMAP WrapperAboutColmap wrapper is a library to work with colmap projects. The purpose is the simplification to read e.g. rgb images,
depth
images, camera poses, sparse point clouds etc. Additionally a visualization for a colmap project is provided.InstallationMake sure that you have a Python version >=3.8 installed.This repository is tested on Python 3.8+ and can currently only be installed
fromPyPi.pipinstallcolmap-wrapperUsageSingle ReconstructionTo visualize a single reconstruction from COLMAP, the following code reads all colmap elements and visualizes them. For
this case an example reconstruction project is provided as shown at the top of the readme.fromcolmap_wrapper.colmapimportCOLMAPfromcolmap_wrapper.visualizationimportColmapVisualizationfromcolmap_wrapper.data.downloadimportDatasetdownloader=Dataset()downloader.download_bunny_dataset()project=COLMAP(project_path=downloader.file_path,load_images=True,image_resize=0.3)colmap_project=project.projects# Acess camera, images and sparse + dense point cloudcamera=colmap_project.camerasimages=colmap_project.imagessparse=colmap_project.get_sparse()dense=colmap_project.get_dense()# Visualize COLMAP Reconstructionproject_vs=ColmapVisualization(colmap_project)project_vs.visualization(frustum_scale=0.7,image_type='image')Multiple Incomplete ReconstructionIn case of an incomplete reconstruction colmap creates partial reconstructions. In this case a list of
reconstructions can be called as shown below.fromcolmap_wrapper.colmapimportCOLMAPfromcolmap_wrapper.visualizationimportColmapVisualizationproject=COLMAP(project_path="[PATH2COLMAP_PROJECT]",load_images=True,image_resize=0.3)# project.projects is a list containing single colmap projectsforCOLMAP_MODELinproject.projects:project_vs=ColmapVisualization(colmap=COLMAP_MODEL)project_vs.visualization(frustum_scale=0.7,image_type='image')ReferencesPyExifTool: A library to communicate with theExifToolcommand- application. If you have trouble installing it please refer to the PyExifTool-Homepage.# For Ubuntu users:wgethttps://exiftool.org/Image-ExifTool-12.51.tar.gz
gzip-dcImage-ExifTool-12.51.tar.gz|tar-xf-cdImage-ExifTool-12.51
perlMakefile.PL
maketestsudomakeinstallTo Visualize the Reconstruction on an OSM-Map the implementation
fromGPS-visualization-Pythonis used. A guide to
visualize gps data can be found
onMedium.
Package: colo
coloA simple script that prints out the 256 terminal colors in different formats.It can print the numbers, the hex value, rgb,hsi and the ansi escape sequence.colo --help
usage: colo [-h] [--ansi] [--hsi] [--rgb] [--number] [--name] [--hex]

optional arguments:
  -h, --help  show this help message and exit
  --ansi      bool
  --hsi       bool
  --rgb       bool
  --number    bool
  --name      bool
  --hex       boolHow to getpip3installcolo
Package: coloc
colocAn implementation of the COLOC method for colocalization of GWAS and/or eQTL
signals byGiambartolomei et al.Installationpip3installcolocorpip3install--usercolocExample usagefromcolocimportcoloc,print_coloc_resulthelp(coloc)print_coloc_result('not colocalized',*coloc([1,4,9],[9,4,1]))not colocalized

PP0: [|||||               ] [ 0.26540194014704316 ]
PP1: [||||                ] [ 0.21657860877712054 ]
PP2: [||||                ] [ 0.21657860877712054 ]
PP3: [|||                 ] [ 0.17661198683565493 ]
PP4: [||                  ] [ 0.12482885546306076 ]print_coloc_result('colocalized',*coloc([1,4,9],[1,4,9]))colocalized

PP0: [                    ] [ 0.0015168270421050444 ]
PP1: [                    ] [ 0.001237791593959775 ]
PP2: [                    ] [ 0.001237791593959775 ]
PP3: [                    ] [ 1.4094001056824932e-05 ]
PP4: [||||||||||||||||||| ] [ 0.9959934957689188 ]
Package: colocationship
co-locationshipLeveraging information transfer in social and co-location networks to improve predictability in human mobilityThe code was tested on Python 3.6.Install (via pypi version)pip install colocationshipInstall (via GitHub)git clone https://github.com/Magica-Chen/co-locationship.git

cd co-locationshipThe dependencies package are shown inrequirements.txt, also, you can runpip install -r requirements.txtAfter installing all dependencies clone the repository and do (inside the top directory):pip install .This will install a copy of the code as a package. If you want to install a package that links to the cloned code, runpip install --editable .This makes changes to the source files in the cloned directory immediately available to everything that imports the package.After installation, anywhere on the system you can then import the package:importcolocationshipasclDatasetAll processed datasets (Weeplaces, BrightKite, Gowalla) we used in this repo can be found inGoogle Drive.UsageThe example please refers toexample/example_weeplaces.ipynb.
Package: cologging
cologgingDescriptionAdd some colors to your logs in one simple step!QuickstartAdd the formatter to your stream handler and enjoy rainbowy outputimportcologgingimportlogginglog=logging.getLogger('Colorful')formatter=cologging.ColorFormatter('%(levelname)s:%(message)s')sh=logging.StreamHandler()sh.setFormatter(formatter)log.addHandler(sh)log.setLevel(logging.DEBUG)log.debug('Debug in blue')log.info('Info in green')log.warning('Warning in yellow')log.error('Error in red')As you can see the colors are not added when output is redirected
Package: cologs
cologsA simple colorful wrapper aroundloggerfrom Python Standard Library with no dependencies. cologs sends its colorful output both to the terminal and into logs/cologs.log. The cologs.log file is rotated inside the logs folder when it gets large enough.InstallationpipinstallcologsUsagefromcologsimportget_cologscologs=get_cologs()cologs.debug("Debug message")cologs.info("Info message")cologs.warning("Warning message")cologs.error("Error message")cologs.critical("Critical message")STDOUTLog File
Package: colonpython
ColonPythonA programming language that transpiles to python. It has extremely similar syntax, but you are also able to call functions with only one argument using a colon (:) using the following syntax:function:argumentThis allows for statements such as this in ColonPython:print:"hello"or:str:1234It allows you to call single-argument functions whilst shortening the time it takes to write them.To use ColonPython, first install it using:pip3installcolonpythonThen, to use it in your program, create a new python file and before putting in any code write:importcolonpythonPlease note that sometimes Python will detect what it thinks are syntax errors, even though the code will run. This means that some things are not possible. This problem has caused this project to split into two. ColonPython and ArrowPython. ColonPython is this project: adding a way to call functions with an argument using a colon (:), and is used by importing the module and running the code in the file. As python identifies incorrect python syntax before runtime and raises errors, ArrowPython intead lets you run code on external files. It has more non-Python features. If I could use them in the same was as ColonPython, I would, but I cannot as far as I am aware.Sometimes, you may run into issues. The following code will run fine:indexes=("hello","world")print(indexes[0:1])# This returns the string "hello".However, the following code will not:indexes=("hello","world")start=0end=1print(indexes[start:end])# Raises error.Because of this I would reccomend the following:indexes=("hello","world")start=0end=1print(indexes[slice(start:end)])# Does not raise an error, returns the string "hello".Another issue comes to light when you try to try to use type hints. The following code is valid in standard python:defgreeting(name:str)->str:return'Hello '+nameHowever, in ColonPython it is not, as this would treat the variable "name" as a function. In ColonPython you must declare type hints using the following syntax:hint(variable,type)Therefore, the following codeisvalid in ColonPython:defgreeting(hint(name,str))->str:return'Hello '+nameWith that out of the way, this is an example of the popular FizzBuzz program in ColonPython:importcolonpythondeffizbuzz:num:forfizzbuzzinrange:num:iffizzbuzz%3==0andfizzbuzz%5==0:print:"fizzbuzz"continueeliffizzbuzz%3==0:print:"fizz"continueeliffizzbuzz%5==0:print:"buzz"continueprint:fizzbuzzfizbuzz:51Have fun coding!
Package: colony-print
Colony Print Infra-structureSmall web app for printing of Colony based documents.This project includes two main components:The web app end point that allows for XML to Binie conversioncolony_print.controllersThe structure conversion infra-structure (visitors, ast, etc.)colony_print.printingInstallationPre-requisitesapt-getinstallgccpython-dev
pipinstall--upgradeappiernetiuspillowreportlabRun Serverpipinstallcolony_print
python-mcolony_print.mainRun Nodepipinstallcolony_printBASE_URL=$BASE_URL\SECRET_KEY=$SECRET_KEY\NODE_ID=$NODE_ID\NODE_NAME=$NODE_NAME\NODE_LOCATION=$NODE_LOCATION\python-mcolony_print.nodeFontsTo be able to use new fonts (other than the ones provided by the system) one must install them
into the/usr/share/fonts/truetypedirectory so they are exposed and ready to
be used by the PDF generation infra-structure. For example calibri is one type of font that should
be exported to an UNIX machine as it is used by mani colony generated documents.RunningPORT=8686\PYTHONPATH=$BASE_PATH/colony_print/srcpython\$BASE_PATH/colony_print/src/colony_print/main.pyLicenseColony Print Infra-structure is currently licensed under theApache License, Version 2.0.Build Automation