Saravanan666/pypi-org huggingface dataset:
Package: pypore
masterbranchdevelopbranchPyporeThis project is for nanopore-translocation event finding/analysis.
It’s written in Python, withnumpy/scipyas a Matlab replacement.
The gui library ispyside, andpyqtgraphis used for plotting.
More information can be foundhere.Notethat Pypore/PyporeGui are pre-release, major changes can happen at any time.Pull requests are welcome!InstallingDependenciesPypore has the following dependencies:numpyscipyPyTablesPyporeGui depends on all of the above and:PySidepyqtgraphBuilding from source additionally requires:CythonRunning the tests requires:noseInstalling with pipPypore is currently pre-release, so we’ll install with the–pretag.pipinstallpypore--preA new dev release is deployed with every push to thedevelopbranch, so upgrade often!pipinstallpypore--pre--upgradeInstalling from sourceClone or download the source. In the directory (with setup.py), run one of the following:pythonsetup.pyinstallorpipinstall.Running the tests:pythonsetup.pytestsPyporeGuiStart PyporeGui with:importpyporeguipyporegui.start()LicenseCopyright 2014 Will ParkinLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: py-portainer-api
py-portainer-apiPython library to interface with portainerWARNING this is still very alpha, and a lot will changeUsageYou can import the module asportainer.ConstructorPortainer(portainer_ip:str,portainer_port:int,username:str,password:str,use_https:bool=False,debugmode:bool=False,)Code exampleimportasynciofromportainerimportPortainerfromportainer.exceptionsimportPortainerExceptionportainer=Portainer("192.168.0.100",9000,"admin","Password")try:asyncio.run(portainer.login())exceptPortainerException:print("Error")endpoints=asyncio.run(portainer.get_endpoints())ifendpointsisNone:print("No endpoints found")else:asyncio.run(endpoints[0].refresh())asyncio.run(endpoints[0].docker_container["grocy"].get_image_status())asyncio.run(endpoints[0].docker_container["grocy"].get_stats())asyncio.run(endpoints[0].docker_container["grocy"].recreate())
Package: pyporter
# pyporter#### Description
A rpm packager bot for python modules from pypi.org#### Installationpython3 setup.py install#### Preparation
Install below software before using this tool
1.  gcc
2.  gdb
3.  libstdc++-devel
4.  python3-cffi#### Instructionspyporter is a tool to create spec file and create rpm for python modules
For more details, please use pyporter -hpyporter &lt;package&gt; -s -b -d -o python-&lt;package&gt;.spec#### ContributionFork the repositoryCreate Feat_xxx branchCommit your codeCreate Pull Request#### How to create a rpm fileCreate spec file, pyporter -s XXXGet required python modules, pyporter -R XXXBuild and Install rpm package, pyporter -B XXXFor more detail, pyporter -h
Package: pyportfolio
pyportfolioPython package with a CLI to consolidate and analyze your investments (currently only supports mutual funds).Usescasparserto parse the Consolidated Account Statement (CAS) from CAMS/KARVY to provide portfolio insights.Installation$pipinstallpyportfolioTo install from source:$gitclonehttps://github.com/kaushiksk/pyportfolio.git&&cdpyportfolio
$pipinstall.ContributingPRs are welcome. Once you've cloned your forked repo, run the following from the root directory:$pipinstall-rrequirements-dev.txt
$pre-commitinstallThis will install all the pre-commit hooks that will ensure formatting and linting sanity before each commit.$pipinstall-e.# Installs development version of the packageUsage$pyportfolio-fpath/to/cas-pdfThe following features are currently supportedLTCG Tax HarvestingPortfolio Summary and Break UpYou can also export the portfolio into a dict for your usage.frompyportfolioimportPortfoliop=Portfolio("<cas-pdf>","<cas-password>")p_dict=p.to_dict()To access schemes, you can use theschemesmember ofPortfolioor use"schemes"key in the exported dict.schemes=p.schemes# this is of type List[Scheme]schemes_list=p_dict["schemes"]The schemes are instances of theSchememodel.ResourcesCAS from CAMSCAS from Karvy/Kfintech
Package: pyPortfolioAnalysis
pyPortfolioAnalysispyPortfolioAnalysis is a Python library for numeric method for portfolio optimisation.InstallationUse the package managerpipto installpyPortfolioAnalysis.Documentation is available as docstring,HTMLorTextpipinstallpyPortfolioAnalysisUsagefrompyPortfolioAnalysisimport*importpandasaspd#Sample portfolio optimisationimportpandas_datareaderaspdraapl=pdr.get_data_yahoo('AAPL')msft=pdr.get_data_yahoo('MSFT')tsla=pdr.get_data_yahoo('TSLA')uber=pdr.get_data_yahoo('UBER')amzn=pdr.get_data_yahoo('AMZN')port=pd.DataFrame({'aapl':pd.DataFrame.reset_index(aapl).iloc[:,6],'msft':pd.DataFrame.reset_index(msft).iloc[:,6],'tsla':pd.DataFrame.reset_index(tsla).iloc[:,6],'uber':pd.DataFrame.reset_index(uber).iloc[:,6],'amzn':pd.DataFrame.reset_index(amzn).iloc[:,6]})port_ret=port.pct_change().dropna()p1=portfolio_spec(assets=['AAPL','MSFT','TSLA','UBER','AMZN'])add_constraint(p1,'long_only')add_constraint(p1,'full_investment')add_objective(p1,kind='return',name='mean',target=0.002)add_objective(p1,kind='risk',name='std',target=.018)p1.port_summary()constraints=get_constraints(p1)p1.port_summary()optimize_portfolio(port_ret,p1,optimize_method='DEoptim',disp=False)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.AuthorsAnurag AgrawalContributorsSaloni ManglaLicenseGPL3ReferencesBrian G. Peterson and Peter Carl (2018). PortfolioAnalytics: Portfolio Analysis, Including Numerical Methods for Optimization of Portfolios. R package version 1.1.0.https://CRAN.R-project.org/package=PortfolioAnalyticsBoudt, Kris and Lu, Wanbo and Peeters, Benedict, Higher Order Comoments of Multifactor Models and Asset Allocation (June 16, 2014). Available at SSRN:http://ssrn.com/abstract=2409603orhttp://dx.doi.org/10.2139/ssrn.2409603Chriss, Neil A and Almgren, Robert, Portfolios from Sorts (April 27, 2005). Available at SSRN:http://ssrn.com/abstract=720041orhttp://dx.doi.org/10.2139/ssrn.720041Meucci, Attilio, The Black-Litterman Approach: Original Model and Extensions (August 1, 2008). Shorter version in, THE ENCYCLOPEDIA OF QUANTITATIVE FINANCE, Wiley, 2010. Avail- able at SSRN:http://ssrn.com/abstract=1117574orhttp://dx.doi.org/10.2139/ssrn.1117574Meucci, Attilio, Fully Flexible Views: Theory and Practice (August 8, 2008). Fully Flexible Views: Theory and Practice, Risk, Vol. 21, No. 10, pp. 97-102, October 2008. Available at SSRN:http://ssrn.com/abstract=1213325Scherer, Bernd and Martin, Doug, Modern Portfolio Optimization. Springer. 2005.Shaw, William Thornton, Portfolio Optimization for VAR, CVaR, Omega and Utility with General Return Distributions: A Monte Carlo Approach for Long-Only and Bounded Short Portfolios with Optional Robustness and a Simplified Approach to Covariance Matching (June 1, 2011). Available at SSRN:http://ssrn.com/abstract=1856476orhttp://dx.doi.org/10.2139/ssrn.1856476
Package: pyportify
Pyportify=========[![Build Status](https://travis-ci.org/rckclmbr/pyportify.svg?branch=master)](https://travis-ci.org/rckclmbr/pyportify)A port of [portify](https://github.com/mauimauer/portify) to python.But it actually works.Transfers your Spotify Premium playlists to Google Music: All AccessBy using Pyportify you may violate both Spotify's and Google's Terms of Service. You agree thatyou are using Pyportify on your own risk. The author does not accept liability (as far as permitted by law) for any loss arising from any use of this tool.If you choose not to agree to these terms, then you may not use this tool.If you are unable to sign in to your Google account, try using Google App Passwords: https://security.google.com/settings/security/apppasswordsDownload--------Windows:https://github.com/rckclmbr/pyportify/releases/download/v0.4.1/pyportify.zipOSX:https://github.com/rckclmbr/pyportify/releases/download/v0.4.1/pyportify.dmgInstall from pypi-----------------OS X:```bash$ brew install python3$ pip3 install pyportify```Ubuntu:```bashsudo apt-get updatesudo apt-get install -y python3-pipsudo pip3 install pyportify```Fedora```bashsudo yum check-updatesudo pip install pyportify```Running-------```$ pyportify# Now open a browser to http://localhost:3132```EZAlternatively, you can copy all playlists easily using the ```pyportify-copyall``` command:```bash$ pyportify-copyallEnter Google email address: example@gmail.comEnter Google password:Go to https://developer.spotify.com/web-api/console/get-playlist-tracks/ and get an oauth tokenEnter Spotify oauth token: <access token>(transfer music)...```Or, use Docker:```$ docker run -t -i --rm -p 3132:3132 rckclmbr/pyportifyor$ docker run -t -i --rm rckclmbr/pyportify /usr/local/bin/pyportify-copyall```License-------Licensed under the terms of the Apache 2.0 LicenseAll Trademarks are the property of their respective owners.
Package: pyportscanner
Python Port Scanner v0.3An easy to use Python3 package that could perform port scanning conveniently.An output example is showed as following:InstallationInstall with pippip install pyportscannerInstall with setup scriptsClone or download this repository.Install the package usingpython setup.py install.Voilà! You are ready to go!QuickStartAddfrom pyportscanner import pyscannerto the beginning of your code.Initialize a new PortScanner object usingscanner = pyscanner.PortScanner(target_ports=100, timeout=10, verbose=True).Then callscanner.scan(objective)to perform a port scan to a specific target.
The target could either be an IPv4 address or a host name.Note that the total scan time for a target website is highly related to the timeout value set for the Scanner object. Thus for the seek of efficiency, the timeout should not be too long.Documentationclass pyportscanner.pyscanner.PortScanner(target_ports=None, thread_limit=100, timeout=10, verbose=False)PortScanner is the class provides methods to execute the port scan request. A PortScanner object is needed for performing
the port scan request.target_portscan be a list or int. If this args is a list, then the list of ports specified by it is going to be scanned,
default to all ports we have in file. If this args is an int, then it specifies the top X number of ports to be scanned based on usage
frequency rank.thread_limitis the number of thread being used for scan.timeoutis the timeout for the socket to wait for a response.verbosespecifies whether the results would be print out or not. IfTrue, results will be print out.FunctionsPortScanner.scan(objective, message = '')Scan an objective with the given message included in the packets sent out.objectiveis the target that is going to be scanned. It could be an IPv4 address or a hostname.messageis the message that is going to be included in the scanning packets sent out. If not provided, no message will be included in the packets.An example usage case is showed inexamples/PortScanExample.py.Unit TestIn order to run unit test, execute the following command under the root directory.pytest--covpyportscanner/tests/Change logs
Package: pypos
PyPOS - Python Part-of-Speech taggerThis is  a  project, which allows its  users to assign part of speech tags to words in a  sentence .
dt   vbz dt nn     , wdt   vbz    prp$ nns   to vb     nn   in nn     nns  to nns   in dt nn       .PyPOS uses Hidden Markov Models and Viterbi decoding to determine the most likely sequence of POS tags for a given sequence of words.UsageInstallationRequires Python 3.6 or higherpip3 install pyposTrainingfrompyposimportPartOfSpeechTagger,PartOfSpeechDatasettagger=PartOfSpeechTagger()ds=PartOfSpeechDataset.load('train.txt')tagger.fit(ds).save('tagger.p')TaggingfrompyposimportPartOfSpeechTaggertagger=PartOfSpeechTagger.load('tagger.p')# Reproducing the results shown above:sentence='This is a project, which allows its users to assign part of speech tags to words in a sentence.'tokens=tagger.tokenize(sentence)tags=tagger.tag(sentence,human_readable=False)
Package: pyposdisplay
Hardware Customer DisplayPython library for supporting Customer Point Of Sale Display.It should support most serial and USB-serial LCD displays out-of-the-box
or with inheritance of a few functions.It has been tested with:Bixolon BCD-2000 (Datasheet:https://www.bixolon.com/product_view.php?idx=162To be used in BCD-2000K config mode)Bixolon BCD-1100 (Discontinued by Bixolon. Support page:https://www.bixolon.com/download_view.php?idx=78)Bixolon BCD-1000 (Discontinued by Bixolon. Support page:https://www.bixolon.com/download_view.php?idx=78)Epson DM-D110 (model M58DB)Epson OCD300 :http://www.aures-support.fr/NEWSITE/afficheurs-ocd100150For Epson OCD300, change pywebdriver/config/config.ini :` [display_driver]device_name=/dev/ttyACM0`For Bixolon devices connected via USB, for kernel >= 3.12, you have to create a file /etc/udev/rules.d/99-pyposdisplay.rules with the following content:`ACTION=="add",ATTRS{idVendor}=="1504",ATTRS{idProduct}=="0011",RUN+="/sbin/modprobeftdi_sio",RUN+="/bin/sh-c'echo 1504 0011 >/sys/bus/usb-serial/drivers/ftdi_sio/new_id'"ACTION=="add",ATTRS{idVendor}=="1504",ATTRS{idProduct}=="008c",RUN+="/sbin/modprobe-qftdi_sio"RUN+="/bin/sh-c'echo 1504 008c >/sys/bus/usb-serial/drivers/ftdi_sio/new_id'"`(Source :http://www.leniwiec.org/en/2014/06/25/ubuntu-14-04lts-how-to-pass-id-vendor-and-id-product-to-ftdi_sio-driver/)For kernel < 3.12 and bixolon display please read this:http://techtuxwords.blogspot.fr/2012/12/linux-and-bixolon-bcd-1100.htmlThis library has been inspired by the work carried out during a POS code sprint at Akretion France
from July 7th to July 10th 2014.ContributorsAlexis de Lattre <alexis.delattre@akretion.com>Sébastien BEAU <sebastien.beau@akretion.com>
Package: pyposeidon
Framework for Sea Level Hydrodynamic simulationsThis is a development project utilising multiple solvers (currently DELFT3D & SCHISM) for simulating sea level height (currently only storm surge). The purpose is to create a simple, portable and transparent way of setting up, running and analysing hydrodynamic computations through python scripts and Jupyter Notebooks (http://jupyter.org). See Notebooks in Tutorial/ for relevant prototypes.Installationconda install -c gbrey pyposeidonAfterwards, for now, one needs to install gmsh manually withpip install gmshNote: Due to an upstream issue,pydapneeds to be installed manually. Seeenvironment.ymlfor info.PrerequisitiesDELFT3D needs to be compiled for your system. You can download it fromhttp://oss.deltares.nl/web/delft3d/source-code. See Wiki for more details.SCHISM needs to be compiled for your system. You can download it fromhttp://columbia.vims.edu/schism/tags/. Seehttp://ccrm.vims.edu/schismweb/for more info.You can also install the solvers easily with condaconda install -c gbrey pschism delft3d4TestsThere are several sets of tests. You can run pyPoseidon unitests withpytestIn order to test also the solver integration usepytest --runschismorpython --rundelftif you are using a local installation of the solvers please specify the PATH to the executables in your system such asexport D3D = '/path_to_folder_bin/lnx64/flow2d3d/'export LD3D = '/path_to_folder_bin/lnx64/flow2d3d/'export SCHISM = '/path_to_schism_executable'docsmkdocs build
mkdocs serveLicenseThe project is released under the EUPL v1.2 license.
Package: pypostalcode
pypostalcodepypostalcodeis a fork of Nathan Van Gheem's excellentpyzipcodepackage. The zipcode database has been replaced with Canadian cities and their postal codes. The general usage is the same.Canadian postal codes are six characters with this format:A1A 1A1, whereAis a letter and1is a digit, with a space separating the third and fourth characters. The first three digits are the Forward Sortation Area (FSA), and the last three are the Local Delivery Unit (LDU). The FSA information is available from the report "Forward Sortation Area Boundary File, 2011 Census. Statistics Canada Catalogue no. 92-179-X" retrieved fromhttp://www12.statcan.gc.ca/census-recensement/2011/geo/bound-limit/bound-limit-2011-eng.cfmThis module only uses the FSA designator for location. There are over 800,000 FSA+LDU combinations, but the 1,645 unique FSA values provide coarse resolution for most applications.To install:pip install pypostalcodeBasic usage:>>>frompypostalcodeimportPostalCodeDatabase>>>pcdb=PostalCodeDatabase()>>>pc='V5K'>>>location=pcdb[pc]>>>location.postalcode'V5K'>>>location.city'Vancouver (North Hastings- Sunrise)'>>>location.province'British Columbia'>>>location.longitude-123.0489>>>location.latitude49.293>>>location.timezone-8.0>>>location.dst1Get a list of postal codes given a radius in kilometers:>>>frompypostalcodeimportPostalCodeDatabase>>>pcdb=PostalCodeDatabase()>>>pc='T3Z'>>>radius=25>>>results=pcdb.get_postalcodes_around_radius(pc,radius)>>>forrinresults:...print(f'{r.postalcode}:{r.city},{r.province}')...T3B: Calgary (Montgomery / Bowness / Silver Springs / Greenwood), AlbertaT3G: Calgary (Hawkwood / Arbour Lake / Royal Oak / Rocky Ridge), AlbertaT3H: Calgary (Discovery Ridge / Signal Hill / Aspen Woods / Patterson / Cougar Ridge), AlbertaT3L: Calgary (Tuscany / Scenic Acres), AlbertaT3R: Calgary Northwest, AlbertaT3Z: Redwood Meadows, AlbertaT4C: Cochrane, Alberta© This data includes information copied with permission from Canada Post CorporationThis data includes data fromGeoNames, which is distributed under aCC BY 4.0license
Package: pypostalwin
pypostalwinpypostalwin is the Un-Official Python wrapper tolibpostalonly for Windows, a fast statistical parser/normalizer for street addresses anywhere in the world.About libpostallibpostal is a C library for parsing/normalizing street addresses around the world using statistical NLP and open data. The goal of this project is to understand location-based strings in every language, everywhere.Installation1. Build the libpostal in windowsBefore usign the Python wrapper, you need to build the libpostal C library as a bundle which can be accessed by the python package. (still under development)(OR)Download and InstallMSYS2You can use the libpostal prebuilt zipped fileDownload hereUnpack the zip to C:\Workbench\libpostal\If you dont haveWorkbenchfolder in C Drive, then create one.Copy the zip inside theWorkbenchand unzip using7zip2 . Install the python wrapperInstall using pip.Offical Python Package Here!!pipinstallpypostalwin(OR)Clone this Repository. Run this from the root directory to installpythonsetup.pyinstallUsageImport Packageimportpypostalwin1. Initialize Address Parser Objectparser=pypostalwin.AddressParser()parsedAddress=parser.runParser("The White House 1600 Pennsylvania Avenue NW, Washington, DC 20500, USA")print(parsedAddress)output[{'house':'the white house'},{'house_number':'1600'},{'road':'pennsylvania avenue nw'},{'city':'washington'},{'state':'dc'},{'postcode':'20500'},{'country':'usa'}]Note:In a single runtime, the first-time parser.runParser() will take a few seconds to run since it is loading the models from libpostal in the backend process. Once it is loaded, the recurrent runs will be faster as usual. You need to use the same object instance to get the results faster.for eg:parser=pypostalwin.AddressParser()parsedAddress1=parser.runParser("The White House 1600")#only first time will take few seconds to loadparsedAddress2=parser.runParser("Washington, DC 20500, USA")#will be faster as usualparsedAddress3=parser.runParser(" 20500, USA")#will be faster as usualparsedAddress4=parser.runParser("Pennsylvania Avenue NW, Washington,")#will be faster as usual2. Expand the AddressexpandAddress=parser.expandTheAddress("District Science Cntr, Kokkirakulam Rd, Tirunelveli, TamilNadu 627009")print(expandAddress)output['district science center kokkirakulam road tirunelveli tamilnadu 627009','district science connector kokkirakulam road tirunelveli tamilnadu 627009']3. Terminate Address Parser Objectparser.terminateParser()
Package: py-postdmarc
py-postdmarcA Python interface for thePostmark DMARC monitoring API.Table of ContentsInstallationFeaturesUsageContributingLicenseExamplesetPOSTMARK_API_KEY="aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"postdmarc get_record
postdmarc export_all_reports --from_date 2020-01-01 --to_date 2020-01-08 --filepath reports.jsonInstallationpip install py-postdmarcCloneClone this repo to your local machine usinghttps://github.com/scuriosity/py-postdmarc, then install locally with pip:git clone https://github.com/scuriosity/py-postdmarc
pip install .FeaturesImplements the 10 API methods provided by theAPI Documentation:Create a recordGet a recordUpdate a recordGet DNS snippetVerify DNSDelete a recordList DMARC reportsGet a specific DMARC report by IDRecover API tokenRotate API tokenAs well asExport all forensic reports within a given timeframe to a JSON file.UsageAPI KeyFor most commands, your Postmark API key is required. The py-postdmarc package can load your API key either from thePOSTMARK_API_KEYenvironment variable or the filePM_API.keyin the package root. The API key should be a hexadecimal string like this:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeeepy-postdmarc/
+-- postdmarc/
|   +-- __init__.py
|   +-- pdm_exceptions.py
|   â””-- postdmarc.py
|
+-- tests/
|   +-- __init__.py
|   +-- test_meta.py
|   â””-- test_postdmarc.py
|
+-- license.txt
+-- PM_API.key
+-- readme.md
+-- requirements.txt
+-- setup.pyIf the key isn't set in one of these two locations, an APIKeyMissingError will be raised.SyntaxCreate a recordpostdmarc create_record --email EMAIL@domain.com --domain domain.comGet a recordpostdmarc get_recordUpdate a recordpostdmarc update_record --email EMAIL@domeng.comGet DNS snippetpostdmarc get_dns_snippetVerify DNSpostdmarc verify_dnsDelete a recordpostdmarc delete_recordList DMARC reportspostdmarc list_reports --from_date 01-01-2020 --to_date 01-02-2020Optional flags for "after", "before" and "reverse" are provided.Get a specific DMARC report by IDpostdmarc get_report --id 1234567postdmarc get_report --id 1234567 --fmt xmlRecover API tokenpostdmarc recover_token --owner domain.comRotate API tokenpostdmarc rotate_tokenExport all forensic reportspostdmarc export_all_reports --from_date 2020-01-01 --to_date 2020-01-08 --filepath reports.jsonContributingIssues and pull requests are welcome. Create a new pull request usinghttps://github.com/scuriosity/py-postdmarc/compareLicenseMIT licenseCopyright 2020 Â©Scuriosity.