Saravanan666/pypi-org huggingface dataset:
Package: pyprote
pyprote: A Python package for creating Templates for python projectsInstallation from PyPipipinstallpyproteFortest-PyPi dev version:pipinstall-ihttps://test.pypi.org/simple/pyproteUsageCreate a new projectGet default template:pyproteYou will have to replace all instances ofPY_PRO_TE_FILL_ME_INwith your own project name, email etc..Fill the template cli arguments:pyprote--package_namemy_cool_package_name\--package_version0.1.0\--package_description'My cool package description'\--package_author_name'John Doe'\--package_author_emailjohn@doe\--package_linkhttps://cool.package\--out_dirpyprote_output_dirInstallation - developmentCreate a virtual environment.Poetry:poetryinstallTestingRunning the tests requires to run the following command in the root folder (of course in the virtual environment):poetryrunpytestCLI apppyprote--helpFormattingpoetryrunblack.&&\poetryrunisort.&&\poetryrunflake8.&&\poetryrunmypy.VersioningUpdate (calendar) version withbumpver:poetryrunbumpverupdate--dry--patch--dryjust shows how the version WOULD change.poetryrunbumpverupdate--patchHow to build a Python package?To build the package, you need to go to the root folder of the package and run the following command:poetrybuildThe built package is now located in the dist/ folder.Publishing your package in PyPiPublishing is done automatically using GitHub actions.Commit to master creates test-pypi release.Tagged Commit creates real pypi release.
Package: pyProtein
pyProteinpyProtein does basic calculations on polypeptides/
proteins/enzymes,e.g.the isoelectric point similar toe.g.the "ExPASy
Compute pI/Mw tool". Methods are contained in class protein. Is intended
to be included into scripts for automated calculations.Currently only calculations for compounds with amino acid residues (proteins/
enzymes/polypeptides) are supported:Input as amino acid abundance or amino acid sequence.Currently containspKatables from three sources for IEP and
charge calculation.Calculates charge states of proteins depending on pH values.For imformation on how to use it:See docstrings.Or look at how the tests are done in the tests folder.RequirementsRequirements are listed in the requirements.txt file. Please also click on the
Travis CI badge to find further details on tested conditions.InstallationpyProtein is part of PyPI, so install with:pip install pyProtein
Package: pyproteininference
Py Protein InferenceRequirementsPython 3.7or greater. This package was created usingPython 3.7Python Packages:numpy,pyteomics,pulp,PyYAML,matplotlib. These should be installed automatically during installation.Quick Start GuideInstall the package using pip:pipinstallpyproteininferenceRun the Heuristic method with tab delimited results directly from percolator to generate results for peptide centric, parsimony, inclusion, and exclusion:protein_inference_heuristic_cli.py\-t/path/to/target/file1.txt\-d/path/to/decoy/file1.txt\-db/path/to/database/file.fastaRun the standard commandline tool with tab delimited results directly from percolator to run a particular inference method. By default, peptide centric inference is selected if a parameter file is not specified:protein_inference_cli.py\-t/path/to/target/file.txt\-d/path/to/decoy/file.txt\-db/path/to/database/file.fastaSpecifying Parameters.
The two most common parameters to change are the inference type, and the decoy symbol (for identifying decoy proteins vs target proteins).
The parameters can be quickly altered by creating a file called params.yaml as follows:parameters:inference:inference_type:parsimonyidentifiers:decoy_symbol:"decoy_"The inference type can be one of:parsimony,peptide_centric,inclusion,exclusion, orfirst_protein.
All parameters are optional, so you only need to define the ones you want to alter. Parameters that are not defined are set to default values.
See the package documentation for the default parameters.Run the standard commandline tool again, this time specifying the parameters as above:protein_inference_cli.py\-t/path/to/target/file.txt\-d/path/to/decoy/file.txt\-db/path/to/database/file.fasta\-y/path/to/params.yamlRunning with dockerEither Pull the image from docker hub:docker pull hinklet/pyproteininference:latestOr Build the image with the following command (After having cloned the repository):git clone REPOSITORY_URLcd pyproteininferencedocker build -t pyproteininference:latest .Run the tool, making sure to volume mount in the directory with your input data and parameters. In the case below, that local directory would be/path/to/local/directoryand the path in the container is/datadockerrun-v/path/to/local/directory/:/data\-ithinklet/pyproteininference:latest\python/usr/local/bin/protein_inference_cli.py\-f/data/input_file.txt\-db/data/database.fasta\-y/data/parameters.yaml\-o/data/DocumentationFor more information please see the full package documentation (https://thinkle12.github.io/pyproteininference/).
Package: pyprotobuf
##########pyprotobuf##########protocol buffers compilerVisit http://code.google.com/p/pyprotobuf for more information.Installation############From PyPi::pip install pyprotobufUsage#####.. program:: pyprotoc.. option:: --formatSelect the output format.. option:: -h, --helpShow a help messageUsage::usage: pyprotoc [-h] [--format {closure,python,externs}] paths [paths ...]positional arguments:pathsoptional arguments:-h, --help            show this help message and exit--format {closure,python,externs}Example#######Input file (test.proto)::option javascript_package = "com.example";message Item {optional string aString = 1;optional int32 aNumber = 2;required string aRequiredString = 3;repeated string aRepeatedString = 4;}Generated python rpc (`protopy --format python test.proto`)::from protorpc import messagesclass Item(messages.Message):aString = messages.StringField(1)aNumber = messages.IntegerField(2)aRequiredString = messages.StringField(3, required=True)aRepeatedString = messages.StringField(4, repeated=True)Generated javascript externs(`protopy --format externs test.proto`)::/** @constructor */com.example.Item = function(){};/** @type {string} */com.example.Item.prototype.aString;/** @type {number} */com.example.Item.prototype.aNumber;/** @type {string} */com.example.Item.prototype.aRequiredString;/** @type {[string]} */com.example.Item.prototype.aRepeatedString;Development###########Contributions are welcome.
Package: pyprotoclust
Pyprotoclustis an implementatin of representative hierarchical clustering using minimax linkage.The original algorithm is fromHierarchical Clustering With Prototypes via Minimax Linkageby Jacob Bien and Robert Tibshirani.Pyprotoclust takes a distance matrix as input. It returns a linkage matrix encoding the hierachical clustering as well
as an additional list labelling the prototypes associated with each clustering. This allows a user to integrate with
the existing tools in theSciPy hierarchical clustering module.Installation:pipinstallpyprotoclustUsage:frompyprotoclustimportprotoclustimportnumpyasnpimportscipyasspimportscipy.cluster.hierarchyimportscipy.spatial.distance# Generate two-dimensional toy datan=60np.random.seed(4)params=[{'mean':[-7,0],'cov':[[1,1],[1,5]]},{'mean':[1,-1],'cov':[[5,0],[0,1]]},{'mean':[3,7],'cov':[[1,0],[0,1]]}]data=np.vstack([np.random.multivariate_normal(p['mean'],p['cov'],n)forpinparams])X=sp.spatial.distance.squareform(sp.spatial.distance.pdist(data))# Produce a hierarchical clustering using minimax linkageZ,prototypes=protoclust(X)# Generate clusters at a set cut_height using scipy's hierarchy modulecut_height=7T=sp.cluster.hierarchy.fcluster(Z,cut_height,criterion='distance')L,M=sp.cluster.hierarchy.leaders(Z,T)# Get the prototypes associated with the generated clustersP=data[prototypes[L]]The previous example produces a linkage matrix Z and prototypes P that can be used to produce dendrograms and other
plots of the data.A dendrogram of the hierarchical clustering example with a dashed line at the example cut height.A scatter plot of the example with circles centered at prototypes drawn with radii equal to the top-level
linkage heights of each cluster.
Package: pyprotogen
pyprotogenLib for generation *_pb2.py from *.proto with helper methodsInstallationpipinstallpyprotogenUsageGenerationpyprotogenpath/to/input/hello.protopath/to/output/Generate as python-packagepyprotogenpath/to/input/hello.protopath/to/package/output--package-version=0.0.1--package-authors="Rick, Morty"--name="Package"--name— optional;--package-version— required;--package-authors— optional;path/to/package/output— path to the directory where package will be saved.UsageAs clientfrompackage.clientimportget_channelfrompackage.gen.hello_pb2_grpcimportHelloStubchannel=get_channel(host="your.host")stub=HelloStub(channel)As serverfrompackage.serverimportget_serverfrompackage.gen.hello_pb2_grpcimportadd_HelloServicer_to_serverfrompackage.gen.hello_pb2_grpcimportHelloServicerclassHello(HelloServicer):passserver=get_server()add_HelloServicer_to_server(Hello(),server)server.add_insecure_port('[::]:50051')server.start()server.wait_for_termination()DevelopmentActivate environmentrm-rf.venv||truepython3-mvenv.venvsource.venv/bin/activate
makerequirementsMake changesExecutemake test
Package: py-proto-parser
py_protoThis is a Python-based protobuf parser. It is intended to serve as a reference implementation and isnotproduction-ready.UsageRight now, the primary way to use this as a library in your Bazelified Python code.Mount this repo in your Bazel workspace, then add@py_proto//src/util:parseras a dependency:py_library(
    name = "your_python_code",
    # ...
    deps = [
        "@py_proto//src/util:parser",
    ]
)Then, in your Python code, use the parser:fromsrc.util.parserimportParseError,Parserwithopen("your.proto","r")asproto_file:parsed_proto=Parser.loads(proto_file.read())print(parsed_proto.syntax)DevelopmentWe support building & running via Bazel. See theTODO.mdfor what's on the roadmap.BazelDobazel test //....
Package: pyprov
pyprov is a Python implementation of W3C PROV data model.pyprov currently provides:
1. Implementation of core definitions in the PROV data model;
2. Exporting data model instances in JSON serialization;The following functionalities are currently under development:
1. Tools for persisting data model instances in RDF store;
2. Tools for querying PROV data;
3. Tools for exporting data model instances in RDF triples, XML and other formats;
Package: pyprowl
pyprowlPython module for sending Prowl notificationsCreated by Todd Robertshttps://github.com/toddrob99/pyprowlUsageimport pyprowl

p = pyprowl.Prowl('YOUR_PROWL_API_KEY')

try:
	p.verify_key()
	print("Prowl API key successfully verified!")
except Exception as e:
	print("Error verifying Prowl API key: {}".format(e))
	exit()

try:
	p.notify(event='Event name', description='Description of event', 
			 priority=0, url='http://www.example.com', 
			 #apiKey='uncomment and add API KEY here if different', 
			 appName='Name of app sending the notification')
	print("Notification successfully sent to Prowl!")
except Exception as e:
	print("Error sending notification to Prowl: {}".format(e))Changelogv3.0.1Added support for python 3 using requests modulev1.0.2Fixed package layout (moved code frompyprowl.pyto__init__.pyto support importing of module)v1.0.1Updated package layout for submission to PyPIv1.0Supports verification of API key and sending of notificationsAPI key can be set at instantiation and left out of subsequent calls, or it can be set on each callApp name can be set at instantiation and left out of subsequent calls, or it can be set on each call to notify()
Package: pyproxies
PYPROXIESPlease subscribe to my Github @venaxyt if you want more modules like this.Pyproxies only returns proxy, it does not print them like on screenshot.Send a request with http proxyhttp_proxy = pyproxies.proxy("http")
proxy_ip = requests.get("https://api.ipify.org", proxies=http_proxy)
print(f" [IP] : {http_proxy}")Send a request with socks4 proxysocks4_proxy = pyproxies.proxy("socks4")
proxy_ip = requests.get("https://api.ipify.org", proxies=socks4_proxy)
print(f" [IP] : {socks4_proxy}")Send a request with socks5 proxysocks5_proxy = pyproxies.proxy("socks5")
proxy_ip = requests.get("https://api.ipify.org", proxies=socks5_proxy)
print(f" [IP] : {socks5_proxy}")Informations:Pyproxies check every proxy it returns, by sending a request to "api.ipify.org", a website which returns requester ip adress.
Pyproxies only returns valid proxies whose timeout is less than 10 seconds, you can edit the timeout in the module code.
All proxies comes from proxyscrape.com, you can edit the proxies source in the module code too.
Thanks for using my modules, @venaxyt.
Package: pyproxmox
A python wrapper for the Proxmox 2.x API.Example usage:1) Create an instance of the prox_auth class by passing in the
url or ip of a server, username and password:a = prox_auth(‘vnode01.example.org’,’apiuser@pve’,’examplePassword’)Create and instance of the pyproxmox class using the auth object as a parameter:b = pyproxmox(a)Run the pre defined methods of the pyproxmox class. NOTE: they all return data, usually in JSON format:status = b.getClusterStatus()For more information seehttps://github.com/Daemonthread/pyproxmox
Package: pyproxmox-ve
pyproxmox-veA simple python module to interact with the Proxmox Virtual Environment (PVE) HTTP API which uses aiohttp and pydantic.Installationpip install pyproxmox-vePydanticPydantic is a fantastic data validation library which I've opted to use in this project, not only to provide data input validation (and also return validation from the PVE API responses), but also to provide a great developer experience with IDEs. Python type annotations provide us the ability with great integration with tools like PyCharm, VSCode and more...ExamplesTO-DODevelopment and ContributingSee this documentwhich explains the development environment/setup required to contribute to this project
Package: pyproxy
Usage=====```Usage: pyproxy [OPTIONS]Options:--bind                           addrs that debugger bind to (default127.0.0.1)--config                         config file--debug                          debug mode (default False)--help                           show this help information--username                       proxy username--password                       proxy password--port                           the port that debugger listen to (default8888)```API===1 Use as http/https proxy`curl -x http://localhost:8888/ http://httpbin.org/get`2 with GET/POST parameters`curl http://localhost:8888/anypath?method=POST&url=http://httpbin.org/post`3 pass params with JSON (work with GET parameters as well)`curl -d '{"url": "http://httpbin.org/get","method": "GET", "headers": {"User-Agent":"Baidu"}}' http://localhost:8888/?callback=callback`Auth====1 http proxy auth`curl -x http://username:password@localhost:8888/ http://httpbin.org/get`2 http basic auth`curl http://username:password@localhost:8888/anypath?method=POST&url=http://httpbin.org/post`3 username & password in GET/POST parameters / JSON`curl http://localhost:8888/anypath?method=POST&url=http://httpbin.org/post&username=usernmae&password=password`4 host_sign / path_sign / url_signsign a host / path / url with current username/password:visit http://username:password@localhost:8888/sign?url=http://httpbin.org/get to get signrequest with: `http://localhost:8888/?url=http://httpbin.org/get&path_sign=abc123`
Package: py-proxy
py_proxyPython proxy manager.Please use diligently and respectfully.Always respect a website's ROBOTS.txtcompatibilityThis library is compatible with python 3dependenciesThis library is dependant on:requestsbeautifulsoup4installpipinstallpy_proxyFeaturesAutomatically fetches up to 80 proxiesCycle between proxies easilyTest a proxy and get details about the proxyValidate all fetched proxies concurrentlyFormat proxies for use with requests libraryExamplesfromproxyimportProxyproxy=Proxy()# getting the current proxycur_proxy=proxy.proxy# testing the current proxyres=proxy.test_proxy(cur_proxy)ifres==1:print("success!")else:print("failure!")# cycling the proxy to a new proxy from the poolproxy.cycle()# filtering proxies by a country codeproxy=Proxy("US")#gets US only proxies from the pool# automatically validating proxies after fetching themproxy=Proxy(validate_proxies=True)# format a proxy for use with requests libraryip="100.100.100.100"#example ip, not realport="1989"#example port, not realaddr=[ip,port]proxies=proxy.format_proxy(addr)#returns the requests proxies dictionary# validating all proxies concurrentlyproxy.validate_proxies()# cycling through valid only proxiesproxy.cycle(valid_only=True)LicenseYou're free to use this package which is licensed under theMIT-LICENSEContributingContribution is always appreciated.If you are contributing please remember to update the README.If your contribution is accepted you will be credited for it.Original AuthorDylan Randall aka HOWZ1TContributorsBerkkarahan- added multi-thread proxy validation
Package: py-proxy-checker
py-proxy-checkerThis is a simple python script to check if a proxy is working or not and to check the speed of the proxy.Installationpipinstallpy-proxy-checkerUsagefromproxycheckerimportCheckerchecker=Checker()#Check the proxies in the file "proxies.txt"proxies=checker.check("proxies.txt")print(proxies){...2:{'proxy':'77.109.178.218:80','Timeout':529},...}#Get the information of the proxyprint(checker.info(proxies[2]['proxy'])){'ip':'210.245.124.131','network':'210.245.112.0/20','version':'IPv4',...}proxy_list=[proxies[proxy]['proxy']forproxyinproxies]#Get the information of each proxy in the listprint(checker.info(proxy_list=proxy_list))[...,{'ip':'210.245.124.131','network':'210.245.112.0/20','version':'IPv4',...},...]ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Package: pyproxypattern
pyproxypattern根据peewee的proxy做的单独的python对象代理模式.特性提供一个相对通用的代理类Proxy提供用于检测代理对象类型的回调函数attach_instance_check提供在初始化代理对象后的回调函数注册器attach_callback,回调函数回按注册的顺序执行可以代理上下文对象,迭代器对象可以代理异步上下文对象,异步迭代器对象安装pip install pyproxypattern使用两种方式:直接使用Proxy的实例代理对象classTest_B:defget2(self)->int:return2B=Test_B()proxy=Proxy()proxy.attach_instance_check(lambdax:isinstance(x,Test_B))proxy.initialize(B)proxy.get2()==2将Proxy类作为父类构造一个更加负载的代理类,然后再用它的实例代理特定对象classAredisProxy(Proxy):"""aredis的代理类."""__slots__=('instance',"_callbacks","_instance_check","url")def__init__(self,url:Optional[str]=None,decode_responses:bool=True,**kwargs:Any)->None:ifurl:instance=self.new_instance(url,decode_responses,**kwargs)super().__init__(instance)else:super().__init__()defnew_instance(self,url:str,decode_responses:bool,**kwargs:Any)->Any:self.url=urlreturnStrictRedis.from_url(url,decode_responses=decode_responses,**kwargs)definitialize_from_url(self,url:str,*,decode_responses:bool=False,**kwargs:Any)->None:"""初始化."""instance=self.new_instance(url,decode_responses,**kwargs)self.initialize(instance)0.0.1项目创建
MIT LicenseCopyright (c) 2020 Python-ToolsPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: pyProxyrack
Proxyrack APIUNOFFICIAL Python bindings for Proxyrack Dashboard APIInstallationpipinstallpyProxyrackUsageLogin with API Key:frompyProxyrackimportProxyrack# Your Proxyrack login email and passwordAPI_KEY=""# Generate an API key from your dashboard and store it here# Initialise the Proxyrack objectuser=Proxyrack()# Optionally, when instantiating you can pass in the following attributes to the Proxyrack class:AttributeDescriptionDefault ValueAPI_BASE_URLThe API BASE URLhttps://peer.proxyrack.comAPI_PREFIXThe API PREFIX/apiAPI_VERSIONThe API VERSION""# Call the complete_login_flow method to login and set the JWT in self.jwtuser.set_api_key(API_KEY)Add proxies for future requests:frompyProxyrackimportProxyrack# With authentication & protocoluser.set_proxy("ip:port:username:password","socks5")# Without authentication & protocoluser.set_proxy("ip:port","socks5")# Alternative wayuser.set_socks5_proxy("ip:port")user.set_socks5_proxy("ip:port:username:password")user.set_https_proxy("ip:port")user.set_https_proxy("ip:port:username:password")FunctionsGet device bandwidth# Get device bandwidth used from date_start to date_end.user.get_device_bandwidth_usage(device_id:str,date_start:str,date_end:str)device_idis required (if not passed, it'll combine the usage for all the devices and return the same) anddate_startanddate_endare optional and need the formatY-m-d(Eg: 2023-04-25)Do note you need to usedate_startanddate_endtogether even if you just want to use one.Remove a proxy# Removes a proxy for future requests.user.remove_proxy()Add/link a device# Add/link a device to your accountuser.add_device(device_id:str,device_name:str)Both are required fields.Delete/unlink a device# Delete/unlink a device from your accountuser.delete_device(device_id:str)Is Logged In# Check if you're logged inuser.is_logged_in()Logout# Logged outuser.logout()Get payout balance# Get available payout balanceuser.get_balance()ExceptionsThe following exceptions are defined.ExceptionReasonNotLoggedInErrorRaised when you try to access protected routes (bandwidth usage, add devices, delete devices, etc).Liked my work?Consider donating:BTC: bc1qh04l5tx7gd96wnyyqhr68uptdmqmwwwkcg3hj0LTC: Lg5mMHUCrsSkaRYrfqaum4hodBAt9BSi91