Saravanan666/pypi-org huggingface dataset:
Package: pycosie
# pycosie
pycosie (pie cozy) is a complimentary suite of analyses software written in Python meant to be analyzed on Technicolor Dawn and quasarcosie outputs. It is the Python derivative of ARCOSIE.### Dependencies
The dependencies include: numpy, scipy, yt, caesar, astropy, and h5py.Most of these can be eitherpiporcondainstalled directly. For example:` conda install h5py numpy scipy astropy `Foryt, they have specific installations available on their [website](https://yt-project.org/), but it is recommended to use thecondainstallation:` conda install yt-cconda-forge`Forcaesar, you can find the necessary files and their documentation [at their GitHub](https://github.com/dnarayanan/caesar), which includes how to install. As of our knowledge, you can use thesetup.pyavailable:` git clonehttps://github.com/dnarayanan/caesar.gitcaesar cd caesar python setup.py install `### Installation
There are a couple ways to do this. One can download this repository, open a terminal,cdinto it and run:` python setup.py install `Otherwise, one can use pip:` pip install pycosie `
Package: pycosmicstar
pycosmicstar: PYthon cosmic STar formAtion Rate==================The pycosmicstar is a software to study thestar formation history for diferents cosmological models.The model used to develop this software was presented by the first timein the article of Pereira and Miranda (2010) - (MNRAS, 401, 1924, 2010)To install:pip install pycosmicstaror Download and:python setup.py installcosmicstarformation is a free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License.cosmicstar is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Foobar.  If not, see <http://www.gnu.org/licenses/>.
Package: pyco-sqlalchemy
pyco-sqlalchemyUsingCoModelto make SqlAlchemy's ORM even simpler for humans, develop with Flask/Django/OtherWebFrames.note: 不管在使用任何 web 框架, 我都希望能有统一的 ORM 查询接口, 且易于在不同的数据库间迁移.Tips:usecharset=UTF8MB4 collate utf8_general_cirefer:What's the difference between utf8_general_ci and utf8_unicode_ci?Samplesflaskfrompyco_sqlalchemy._flaskimportBaseModel,dbclassUser(db.Model,BaseModel):id=db.Column(db.Integer,primary_key=True,autoincrement=True)name=db.Column(db.String(32))email=db.Column(db.String(64),unique=True)form=dict(name="dev")u1=User.insert(form,email="dev@pypi.com")u3=User.upsert_one(form,email="dev@oncode.cc")assertu1.id==u3.id
Package: pycostanza
pyCostanzaPyCostanza is a Python re-write of the ImageJ tool Costanza. It includes
features for segmenting objects in images (e.g. cell nuclei or whole cells)
based on an intensity gradient.Free software: GNU General Public License v3Documentation:https://pycostanza.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.2 (2018-09-18)Implemented new merging methodmerge_labels_small2closest.0.1.1 (2018-09-18)Minor performance improvements in segmentation function.Resolved bugfix due to not importing functions through relative paths.Corrected erronous repository link on pypi.0.1.0 (2018-09-07)First release on PyPI.
Package: pycot
Renders and Parses Cursor on Target XML events.InstallationInstall from pypi using pip:pip install pycotBuild StatusMaster:Develop:SourceGithub:https://github.com/ampledata/pycotAuthorGreg Albrecht W2GMDoss@undef.nethttps://www.orionlabs.io/CopyrightCopyright 2020 Orion Labs, Inc.LicenseApache License, Version 2.0. See LICENSE for details.
Package: pycotacao
Wrapper para a API de Cotação do Banco Central.# Instalação`bash pip install pycotacao `# Exemplos`python >>> from pycotacao import get_exchange_rates, CurrencyCodes # Obtenha dados de qualquer moeda. ... >>> get_exchange_rates(CurrencyCodes.UYU) UYU on2020-02-07at 13:17(-0300)- BUY: 0.1145 / SELL: 0.1146. # Inclusive de qualquer data. ... >>> from datetime import datetime >>> get_exchange_rates(CurrencyCodes.UYU, datetime(2000, 1, 1)) UYU on1999-12-31at 11:53(-0200)- BUY: 0.152403 / SELL: 0.1544. # Veja as taxas de compra e de venda do dia para cada moeda. ... >>>get_exchange_rates(CurrencyCodes.USD).buying_rate4.307 >>>get_exchange_rates(CurrencyCodes.USD).selling_rate4.3076 # E converta parareal...... >>>get_exchange_rates(CurrencyCodes.USD).currency_to_brl(53)228.27100000000002 #...ouo inverso também! ... >>>get_exchange_rates(CurrencyCodes.USD).brl_to_currency(53)12.303835082180333 `# LimitaçõesDisponíveis na página do [Banco Central](https://www.bcb.gov.br/conversao).
> - O cálculo efetuado tem caráter informativo e não substitui as disposições da norma cambial brasileira para casos específicos de conversão.
> - Conversões disponíveis para datas informadas a partir de 01/02/1999.
> - Para dias não úteis, assume-se a cotação do dia útil imediatamente anterior.
> - O Banco Central não assume qualquer responsabilidade pela não simultaneidade ou falta das informações prestadas, assim como por eventuais erros de paridades das moedas, ou qualquer outro, salvo a paridade relativa ao dólar dos Estados Unidos da América em relação ao Real. Igualmente, não se responsabiliza pelos atrasos ou indisponibilidade de serviços de telecomunicação, interrupção, falha ou pelas imprecisões no fornecimento dos serviços ou informações. Não assume, também, responsabilidade por qualquer perda ou dano oriundo de tais interrupções, atrasos, falhas ou imperfeições, bem como pelo uso inadequado das informações contidas na transação.
Package: pycotap
pycotapis a simple Python test runner forunittestthat outputsTest Anything Protocolresults directly to standard output.Contrary to other TAP runners for Python,pycotap…… prints TAP (andonlyTAP) to standard output instead of to a separate file,
allowing you to pipe it directly to TAP pretty printers and processors
(such as the ones listed onthe tape page). By
piping it to other consumers, you can avoid the need to add
specific test runners to your test code. Since the TAP results
are printed as they come in, the consumers can directly display results while
the tests are run.… only contains a TAP reporter, so no parsers, no frameworks, no dependencies, …… is configurable: you can choose how you want the test output and test result
diagnostics to end up in your TAP output (as TAP diagnostics, YAML blocks, or
attachments). The defaults are optimized for aJenkinsbased
flow.Documentation and examples can be found onthe pycotap page.
Package: pycotech
📑 Welcome to Pycotech!pycotechoffers tools and wrappers to interface with PT-104 PicoLog® Data Loggers and files, allowing you to easily build an end-to-end data processing pipeline in pure python.This work would not have been possible withoutMartin Schröder's
amazing wrapper around theusbpt104C library for the PicoPT-104A RTDData Acquisition Module. Don't hesitate to head over to hisPT_104 Github repoto check out the original project and to drop a star! 🌟🔥 Featurespycotech's suite of utility functions provides seamless integration
of.PLWand.TXTfiles generated by traditional PicoTechnology®
software - allowing you to handle, visualise, and convert between
data-formats at will.Pycotechalso provides python command line alternatives to most of
the principal PicoLog® software components. Namely,pycotech'splw-recorderallows you to bypass the PLW Recorder® data acquisition
software and gather data directly from a number ofPT-104Data
Loggers.Pycotech'splw-playersubstitutes instead the PicoLog®
Player software, allowing you to read, convert, and extract data from
existing.PLWfiles.🚀 Quick Start📚 Install pycotech like any other python package, usingpipto download it from PyPI:python-mpipinstallpycotech🐍 Now test your installation running the following minimal script:importpycotechdf=pycotech.utils.read_plw("my_plw_file.PLW")print(df)🎉 If everything went well you should now be properly set-up to usepycotech! Enjoy!📟 CLI ToolsTo usepycotech's command line tools, installpycotechas
described above and then run any of the following:plw-player: converts.PLWfiles to.TXTplw-player-plw"my_plw_file.PLW"usage:plw-player[-h]-plwPLW[-txtTXT]optionalarguments:-h,--helpshowthishelpmessageandexit-plwPLWinput.PLWfile-txtTXToutput.TXTfileplw-recorder: continuous data acquisition from connectedPT-104Loggers:plw-recorderusage:plw-recorder[-h][-dirDIR][-rR]optionalarguments:
-h,--helpshowthishelpmessageandexit-dirDIRoutputlogsdirectory
-rRloggingrate(hours)📚 DocumentationTo learn more about the package head over to theofficial documentation!
Package: pycotem
pycotempycotem is a python package for working with crystal orientations in transmission electron microscopy. It provides 6 GUI tools to:determine orientation from diffraction patterns:diffractiondetermine orientation from Kikuchi patterns:kikuchiwork with stereographic projections:stereoprojdetermine interface normal and direction from images:interfacedetermine orientation relationship and misorientation between two crystals:misorientationdisplay crystal projection on a plane and draw dichromatic patterns:crystalGetting StartedPrerequisitespycotem relies onpython3withnumpy,pillow,matplotlibandpyqt5(for GUI) packages.Installing and runningpycotem can be installed with pip:pip3 install pycotemRunpython3 -m pycotem.xxxxfor the different tools:stereoproj,diffraction,kikuchi,misorientation,interfaceandcrystal.ExamplesImage files and setting parameters are provided in thetestdirectory in the github repository for testingdiffraction,interfaceandkikuchi.DocumentationAvailablehereContributingContributions, bug issues, requests and comments can be adressed directly or through pull-request on github.AuthorsF. Mompiou, with idea fromRX Xie(Tsinghua Univ), J. Du (Tsinghua Univ.) and the contribution of G. Perret (Univ. Toulouse).LicenseThis project is licensed under the GPL-3.0 License.
Package: pyco-template
pyco-templateFastSimpleEasy To UseLightweight (no more requirements)尘归尘，土归土，配置归配置，逻辑归逻辑，业务归业务installpip install pyco-templateusage samplefrompyco_template.ext_jsonimportCoTextTemplatefrompyco_template.ext_jsonimportCoJsonTemplatedeftest_text():## NOTE: generally string_format should use `CoTextTemplate`## NOTE: 注意这种是不适合 CoJsonTemplate, 因为有"{}"text="""{"username": "{name}","password": "{password}","email": "{name}@address.com"}"""tpl=CoTextTemplate(text)print(tpl)txt=tpl.render(password="***")print(100,txt)deftest_text2():## NOTE: suggest to use string_template with ${}## NOTE: 这种使用 ${} ，可以使用 CoJsonTemplatetext="""{"username": "${name}","password": "${password}","email": "${name}@address.com"}"""tpl=CoJsonTemplate(text)txt=tpl.render(password="***")print(101,txt)deftest_list1():data2=["username=${name}","password=${pwd}"]tpl2=CoJsonTemplate.create(data2)txt2=tpl2.render(pwd="***")print(201,txt2)deftest_list2():data1=["username={name}","password={pwd}"]tpl1=CoJsonTemplate.create(data1,_used_delimit=False)txt1=tpl1.render(name="developer",ignore_info="this will be ignored!")print(202,txt1)deftest_dict1():data=dict(username="${name}",password="${password}",email="${name}@address.com",)tpl=CoJsonTemplate.create(data)txt=tpl.render(name="developer")print(301,txt)deftest_dict2():data=dict(username="{name}",password="{password}",email="{name}@address.com",)tpl=CoJsonTemplate.create(data,False)txt=tpl.render(name="developer")tpl.save_file(fout="test_dict.tmp.json")print(302,txt)deftest_dict3():data={"name":"{topic_name}","sensor":"{sensor_key}","input":"{dataset_dir}","device":"{sdir}","calib_params":"","protocol":{"name":"data_proto","version":"{version}"},"type":"{topic_name}.{type}","elem_count":0,"elem_size":0,"order":"up","data":["{sdir}/{sensor_key}.bin"],"index":["{sdir}/{sensor_key}.index.json"]}tpl_json=CoJsonTemplate.create(data,_used_delimit=False)# print(tpl_json)kws1=dict(topic_name="camera",version=2,extra_info="hello")txt1=tpl_json.render(**kws1)print(303,txt1)tpl_json.save_file(fout="test_dict.tmp.json",**kws1)tpl2=CoJsonTemplate.load_file(fout="test_dict.tmp.json")print(304,tpl2.render())
Package: pycotracer
Although Colorado enjoys excellent campaign finanance reporting regulation, the state publishes that data through single file archives containing CSV reports. The Colorado Secretary of State Elections Divison posts reports (contribution, expenditure, and loan data) through the Colorado Transparency in Contribution and Expenditure Reporting system. This micro-library provides programmatic access to that data source through automated URL generation, file download, archive extraction, and data interpretation.This is an un-official library for retrieving campaign finance data and is not supported or endorsed by the State of Colorado.IT IS NO LONGER SUPPORTED AND IS NOT RECOMMENDED FOR FUTURE USE. NOT PYTHON 3 COMPAT.>>> import pycotracer
>>>
>>> # Report types: REPORT_LOAN_DATA, REPORT_CONTRIB_DATA, REPORT_EXPEND_DATA
>>> all_2013_reports = pycotracer.get_report(2013)
>>> loan_data_2012 = pycotracer.get_report(2012, pycotracer.REPORT_LOAN_DATA)
>>>
>>>
>>> all_2013_reports.keys()
['ExpenditureData', 'LoanData', 'ContributionData']
>>> len(all_2013_reports['ExpenditureData'])
8513
>>> all_2013_reports['ExpenditureData'][0].keys()
['City', 'FirstName', 'LastName', 'ExpenditureAmount', 'Electioneering', ...]
>>>
>>>
>>> len(loan_data_2012)
470
>>> loan_data_2012[0].keys()
['City', 'Zip', 'CommitteeType', 'State', 'Type', 'Amended', ...]
Package: pycouchdb
py-couchdbModern pure pythonCouchDBClient.Currently there are several libraries in python to connect to couchdb.Why one more?It's very simple.All seems not be maintained, all libraries used standard Python libraries for http requests, and are not compatible with python3.Advantages of py-couchdbUserequestsfor http requests (much faster than the standard library)Python2 and Python3 compatible with same codebase (with one exception, python view server that uses 2to3)Also compatible with pypy.Example:>>>importpycouchdb>>>server=pycouchdb.Server("http://admin:admin@localhost:5984/")>>>server.info()['version']'1.2.1'InstallationTo install py-couchdb, simply:pipinstallpycouchdbDocumentationDocumentation is available athttp://pycouchdb.readthedocs.org.TestTo test py-couchdb, simply run:pytest-v--doctest-modules--covpycouchdb
Package: pycount
pycount=======* experimental LOC tool (lines of code, a.k.a. SLOC)* doing this to learn Python* feel free to raise issues if you find something unusual (the likelihood of someone even looking at this isvery close to zero, so I'm not expecting anything :D)**TODO*** add recognition of text files without extension* add a lightweight option for results charting* add rules to separate comments based on type of file* count code lines, comments and blank lines separately* improve speed, always* write tests**INSTALL**```pip install pycount```**USAGE**You can run the command at any location in your command line```<your code dir>$ pycount```Or you can pass it path arguments```$ pycount ~/My/Repos/Some/Project # single path$ pycount ~/Some/Code ~/Some/Other/Code # multiple paths$ pycount ~/some.file.py # just one file```Exclude directories or files (exact match)```$ pycount -e test,external$ pycount -e test,test.c someproject # counts only 'someproject' directory, while excluding 'test' directory and 'test.c' file```Alternatively, you can use the Counter class```from pycount.core import CounterCOUNTER = Counter() # or Counter('some/path') # or you can pass it a list of pathsCOUNTER.discover() # discovers all unique files for a pathCOUNTER.count() # counts all lines of code, using the pre-defined file types which should be considered```to see just the files, file type count and final results, you can use the class attributes```COUNTER.discover()COUNTER.files # lists all the filesCOUNTER.count()COUNTER.file_types # outputs the breakdown of counted file number, by file typeCOUNTER.results # outputs the dictionary with all the values that were collected through counting per file type```
Package: pycount_aa44
pycount_aa44Calculate word counts in a text file!Installation$pipinstallpycount_aa44Usagepycount_aa44can be used to count words in a text file and plot results
as follows:frompycount_aa44.pycount_aa44importcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines.
Please note that this project is released with a Code of Conduct.
By contributing to this project, you agree to abide by its terms.Licensepycount_aa44was created by Tomas Beuzen. It is licensed under the terms
of the MIT license.Creditspycount_aa44was created withcookiecutterand
thepy-pkgs-cookiecuttertemplate.
Package: pycount-az
pycount_azCalculate word counts in a text file!Installation$pipinstallpycount_azUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycount_azwas created by Artan Zandian. It is licensed under the terms of the MIT license.Creditspycount_azwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: pycountdict
# Python Counter Dictionarye.g.)` >>> from pycountdict import CounterDictionary >>> cd = CounterDictionary() >>>cd['a']= 1 >>> print(cd) a: 1 >>>cd['b']= 1 >>> print(cd) a: 1, b: 1 >>>cd['A']= 1 >>> print(cd) a: 1, A: 1, b: 1 >>>cd['a']= 1 >>> print(cd) a: 2, A: 1, b: 1 `
Package: pycounter
pycounter makes working withCOUNTERusage statistics in Python easy, including fetching statistics with NISOSUSHI.A simple command-line client for fetching JR1 reports from SUSHI servers
and outputting them as tab-separated COUNTER 4 reports is included.Developed by theHealth Sciences Library Systemof theUniversity of Pittsburghto support importing
usage data into our in-house Electronic Resources Management (ERM) system.Licensed under theMITlicense.
See the file LICENSE for details.pycounter is tested on Python 2.7, 3.5, 3.6, 3.7 and pypy (2 and 3)pycounter 2.x will be the last version with support forPython 2.Documentation is onRead the Docsand
the code can be found onGitHub.InstallingFrompypi:pip install pycounterFrom inside the source distribution:pip install [-e] .(use -e if you plan to work on the source itself, so your changes are used in your installation.
Probably do all of this in a virtualenv.The PyPAhas a good explanation of how to get started.)COUNTER 5 NoteIn this release, reports are output in COUNTER 4 format with COUNTER 5 data,
which is wrong, and probably not a valid apples-to-apples comparison since, for example,
TR_J1 excludes Gold Open Access counts that would be included in JR1, and also has
HTML and PDF columns that will always be 0 because these are no longer reported.Before the 3.0 release, it should be capable of producing actual COUNTER 5 reports,
probably with an API for getting COUNTER 4 style data compatible with scripts that
were making assumptions about the data received to pass it into another system.UsageParsing COUNTER reports (currently supports COUNTER 3 and 4, in .csv, .tsv,
or .xlsx files, reports JR1, JR2, DB1, DB2, PR1, BR1, BR2 and BR3):>>> import pycounter.report
>>> report = pycounter.report.parse("COUNTER4_2015.tsv")  # filename or path to file
>>> print(report.metric)
FT Article Requests
>>> for journal in report:
...     print(journal.title)
Sqornshellous Swamptalk
Acta Mattressica
>>> for stat in report.pubs[0]:
...     print(stat)
(datetime.date(2015, 1, 1), 'FT Article Requests', 120)
(datetime.date(2015, 2, 1), 'FT Article Requests', 42)
(datetime.date(2015, 3, 1), 'FT Article Requests', 23)Fetching SUSHI data:>>> import pycounter.sushi
>>> import datetime
>>> report = pycounter.sushi.get_report(wsdl_url='http://www.example.com/SushiService',
...     start_date=datetime.date(2015,1,1), end_date=datetime.date(2015,1,31),
...     requestor_id="myreqid", customer_reference="refnum", report="JR1",
...     release=4)
>>> for journal in report:
...     print(journal.title)
Sqornshellous Swamptalk
Acta MattressicaOutput of report as TSV:>>> report.write_tsv("/tmp/counterreport.tsv")DevelopmentOur code is automatically styled using black. To install the pre-commit hook:pip install pre-commitpre-commit install
Package: py-counter
py_functionsPython library that takes in a list/tuple and returns a hash map with an element:count of element in the list/tuple as a key:value pairpy_counterDESCRIPTION:py_counter is used to make element counting easier to perform duplicate element finding, or simply count of elements(integers or strings) in a list/tuple easier.USAGE:import package nameCreate an instance of the class and assign it to a variableCall the counter method referencing the variable instance that we created by passing a list or tuple as parameter.SYNTAX:import py_counter
variable_name = py_counter.py_counter()
print(variable_name.counter([list])) (or)
print(variable_name.counter([list]))EXAMPLE CODE:import py_counter
word = py_counter.py_counter()
print(word.counter([1,2,3,4,5,5]))
Package: pycounters
Checkouthttp://pycounters.readthedocs.org/for more details.0.7:Fixed: a busy leader which doesn’t respond to a ping on a timely fashion was not handled correctly.0.6:NEW: new types of counters MaxWindowCounter, MinWindowCounterIMPORTANT: changes in package structure, counters module split int sub modules. Backward compatible as long as no
internals were used.Fixed: removing a counter by name caused an exceptionFixed: too short queue on multi process server caused pycounters to fail if used on >~10 processesFixed: starting up a new process in a multi-process auto election setup caused JSON reporter to output an empty
file (which will then be updated in the next cycle)0.5:Fixed - locking issue with JSON output filesFixed - EventCounter did not respond to events keyword argument0.4:added a patcher util class to allow injecting events to existing libraries/code.decoupled counter names from the names of events they count. Still, by default a counter will count events with
it’s nameshortcut decorators now take the name of the function they wrap as a default event nameAdded a role option to multi process reporting initializations.Made all report_* and shortcuts decorators usable as context managers.Munin plugin now ignores old reports by defaultCounters which doesn’t have any value now return None instead of 0.Fixed an issue with aggregation of average values when not all sources had the same valueAdded output_report() to allow manual initiation of reports.0.3:Added a manifest.in file, so that CHANGES.txt will come along.0.2:Added multiprocess support.Extended EventLogger to allow regex based filtering of events it logs.Added JSONFileReporter to output reports in JSON formatAdded a utility to facilitate writing Munin plugins0.1:Initial Release
Package: pycount-mi
pycount_miCounts the number of instances of words in a text document.Installation$pipinstallpycount_miUsagepycount_mican be used to count words in a text file and plot results
as follows:frompycount_mi.pycount_miimportcount_wordsfrompycounts.plottingimportplot_wordsimportmatplotlib.pyplotaspltfile_path="test.txt"# path to your filecounts=count_words(file_path)fig=plot_words(counts,n=10)plt.show()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepycount_miwas created by Mukund Iyer. It is licensed under the terms of the MIT license.Creditspycount_miwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.