Saravanan666/pypi-org huggingface dataset:
Package: pyproxyroulette
PyProxyRouletteThe pyproxyroulette library is a wrapper for theRequestslibrary. The wrapper applies a random proxy to each request and ensures that the proxy is working and swaps it out when needed. Additionally, the wrapper tries to detect if a request has been blocked by the requested web-host. Blocked requests are repeated with different proxy servers.InstallationThis library is available on pypi. It can be installed as follows:pipinstallpyproxyrouletteExample Wrapper UsagefrompyproxyrouletteimportProxyRoulettepr=ProxyRoulette()pr.get("http://github.com")The functionsget,post,option,put,deleteandheadfrom the requests library are wrapped and callable through the wrapper.
It is generallyonly recommended to call and use idempotent methodsas requests which timeout can be registered by the server, despite not beeing registerd in time at the client. Hence it is only recommended to use theGETmethod in production environments.Initialisation parameterspr=ProxyRoulette(max_retries=5,max_timeout=15,func_proxy_validator=defaults.proxy_is_working,func_proxy_response_validator=defaults.proxy_response_validator)ParameterDefaultDescriptionmax_retries5Number of retries with different proxies when a request fails. Set to 0 for unlimited retries.max_timeout15Timeout until a request is assumed to have failedfunc_proxy_validatordefaults.proxy_is_working()Function, that can check if a specific (ip,port) combination is valid and workingfunc_proxy_response_validatordefaults.proxy_response_validator()Function, which checks if a request has been blocked by inspecting the response. A blocked request will lead to repetition of the request using a different proxyExtend the Pool of ProxiesIt is possible to add functions to the system, which are called on a regular basis and return pairs of IP,PORT to be used in the proxy roulette.
A proxy pool update function has to return a list of IP,PORT tuples. A default function is used to populate the proxy pool if no
explicit function is defined. Multiple functions can be added using the following decorator:frompyproxyrouletteimportProxyRoulette@ProxyRoulette.proxy_pool_updaterdefmy_cool_proxy_obtaining_function():return[("172.0.0.1",80),...]pr=ProxyRoulette()pr.get("http://some.url")DisclaimerTHIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: pyproxywebscrapper
[]Smart ProxyThis Package will be useful for people who are doing webscrapping
usually when doing web scrapping if you make to many request
the server will block your IP AddressThere  is a way to trick the server using Random Ip from different
country.Every Request we make we will use unique Ip and Port number
check out doccumentation for more detailsInstallationpipinstallpyproxywebscrapperUsageimportsysfromsmartproxy.smartproxyimportRequestsr=Requests.request(request_type='get',url='https://www.youtube.com')print(r)AuthorsSoumil Nitin ShahSoumil Nitin ShahBachelor in Electronic Engineering |
Masters in Electrical Engineering |
Master in Computer Engineering |Website :https://soumilshah.herokuapp.comGithub:https://github.com/soumilshah1995Linkedin:https://www.linkedin.com/in/shah-soumil/Blog:https://soumilshah1995.blogspot.com/Youtube :https://www.youtube.com/channel/UC_eOodxvwS_H7x2uLQa-svw?view_as=subscriberFacebook Page :https://www.facebook.com/soumilshah1995/Email :shahsoumil519@gmail.comprojects :https://soumilshah.herokuapp.com/projectHello! I’m Soumil Nitin Shah, a Software and Hardware Developer based in New York City. I have completed by Bachelor in Electronic Engineering and my Double master’s in Computer and Electrical Engineering. I Develop Python Based Cross Platform Desktop Application , Webpages , Software, REST API, Database and much more I have more than 2 Years of Experience in PythonLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: pyprql
pyprqlpyprql contains:pyprql.pandas_accessor — Pandas integration for PRQLpyprql.magic — IPython magic for connecting to databases using%%prqlpyprql.compile — An export ofprql-python'scompilefunctionFor docs, check out thepyprql docs, and thePRQL Book.InstallationpipinstallpyprqlUsagePandas integrationimportpandasaspdimportpyprql.pandas_accessordf=(...)results_df=df.prql.query("select {age, name, occupation} | filter age > 21")Jupyter MagicIn[1]:%load_extpyprql.magicIn[2]:%prqlpostgresql://user:password@localhost:5432/databaseIn[3]:%%prql...:fromp...:groupcategoryID(...:aggregate{averageunitPrice}...:)In[4]:%%prqlresults<<...:fromp...:aggregate{minunitsInStock,maxunitsInStock}CompilationThis library exposesprql-python.compile, so we can simply generate SQL:importpyprqlpyprql.compile("from artists | select track")print(pyprql.compile("from artists | select track"))...returns...SELECTtrackFROMartistsFor context,prql-pythonis the Python binding forprql-compiler, so only
contains functions for compilation; and this library offers broader python
integrations and tooling.SupportThis project was created by@charlie-sanders&@rbpatt2019and is now maintained by the
broader PRQL team.
Package: pyprtg-api
PRTG APIModule to make it easier to communicate with PRTG instances. This module leverages PRTG's existing API and wraps it into an easy to understand Python class, PrtgApi.Table of ContentsGetting StartedRequirementsInstallationUsageTODOsAuthorLicenseGetting StartedRequirementsPython 3Tested with version 3.9.13. Some older versions will probably work but has not been extensively tested.Installationpipinstallpyprtg-apiUsagefromprtgimportApiClientfromprtg.authimportBasicPasshashauth=BasicPasshash('username','passhash')client=ApiClient('https://prtg.instance.com',auth)print(client.get_probe(1))# {'objid': 1, 'objid_raw': 1, 'name': 'Probe Device', 'name_raw': 'Probe Device', 'active': True, 'active_raw': -1, 'tags': '', 'tags_raw': '', 'parentid': 0, 'parentid_raw': 0, 'priority': '3', 'priority_raw': 3, 'status': 'Up', 'status_raw': 3, 'groupnum': '7', 'groupnum_raw': 7, 'devicenum': '3', 'devicenum_raw': 3, 'location': '', 'location_raw': ''}TODOsRetrieve sensorsAdd sensors based on templateAuthorJonny Le <jonny.le@computacenter.com>LicenseMIT LicenseCopyright (c) 2021 Computacenter Digital InnovationPermission 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: pypruningradixtrie
PyPruningRadixTriePython Port ofPruning Radix Trieby Wolf Garbe.Changes compared to original versionRemoved parameter to disable pruning behavior.Seetest/non_pruning_radix_trie.pyfor a non-pruning version that you can use to see the speed improvement.Added outline for more genericInputProviderand providers that read CSV or JSON as examplesWhat and WhyATrieis a tree data structure that is commonly used for searching terms
that start with a given prefix.It starts with an empty string at the base of the trie, theroot node.Adding a new entry to the trie creates a new branch. This branch shares already present characters with existing nodes
and creates new nodes when it's prefix diverges from the present entries.# trie containing flower & flowchart (1 char = 1 node)

'' - f - l - o - w - e - r
                 |
                 c - h - a - r - tARadixTrieis the space optimized version of a Trie.It combines the nodes with only one sub-node into one, containing more than one character.# radix trie containing flower & flowchart

'' - flow - er
      |
     chartThe prefixPruningreferences the algorithm to query the RadixTrie.In order for the pruning to work, the nodes in RadixTrie are stored in a sorted manner.This structure allowscutting off unpromising branchesduring querying the trie whichmakes the algorithm way fastercompared to a non-pruning trie.UsageGet from PyPI:pipinstallpypruningradixtrieCreate the PRT:# empty trietrie=PruningRadixTrie()# fill with data from CSV file on creationtrie=PruningRadixTrie('./test_data.csv',CSVInputProvider(',',lambdax:float(x[1])))Add entries:CSV:# fill with data from CSV file, score is at position 1, term at position 0fill_trie_from_file(trie,'./test_data.csv',CSVInputProvider(',',lambdax:float(x[1]),0))JSON:# define a functon to calculate the score out of a JSON entrydefscore_fun(json_entry:Dict[str,Any])->float:returnjson_entry["pages"]*json_entry["year"]/10.0# "title" = key for term to insert into PRTfill_trie_from_file(trie,'./test_data.json',JSONInputProvider("title",score_fun))Single Entry:# insert single entryinsert_term(trie,term="flower",score=20)Use the PRT:# get the top 10 entries that start with 'flower'trie.get_top_k_for_prefix('flower',10)
Package: pyprycd
PyPRYCDThis module provides a simple unofficial wrapper for working with the PRYCD APIs for real estate analysis.Getting StartedTo install, simply execute the following command in the command line:pipinstallpyprycdObtaining API KeysOnce you have installed the module, you can now make API calls, however you will have to purchase API keys from PRYCD at (www.prycd.com)  Pyrcd has two separate API keys for the pricing and comps API which must be purchased separately.  When you initialize the constructor, you can set either of them, or set the keys later using one of the setter methods.Methodsget_comps():  Returns PRYCD comparables in a requested region.get_counties_in_state(<state>):  Returns a list of counties in a state. Accepts either a state name or code.get_fips_code(<county>): Returns the FIPS code for a county. Note that you must spell out the full county name and state. IE:Maricopa County AZget_pricing():  Returns PRYCD estimated values for a requested property.  Supports all options for the PRYCD API.set_pricing_api_key(<api_key>): Sets or resets the pricing API key.set_comp_api_key(<api_key>)Sets or resets the comp API key.  Supports all options for the PRYCD API.Example UsagefrompyprycdimportPyPrycdPRICING_API_KEY='1234'COMPS_API_KEY='5678'# Initialize the PyPrycd Objectpyrcd=PyPrycd(pricing_api_key=PRICING_API_KEY,comp_api_key=COMPS_API_KEY)# Get a FIPS codefips=PyPrycd.get_fips_code('Autauga County AL')# Get pricing data about a propertypricing_data=pyrcd.get_pricing()
Package: pyps
Photoshop ConnectionPhotoshop Connection is released under the MIT license. It is simple and easy to understand and places almost no restrictions on what you can do with Photoshop Connection.More InformationA python TCP socket connection to Photoshop CS5.5.  This is a simple
wrapper class to facilitate sending arbitrary JavaScript to Photoshop and
receiving the result of the script.  The Connection objet also has a
thumbnail method to write the a JPEG to a file-like object of the current doc
open in Photoshop.There is a EventListener class to subscribe to events in Photoshop.Examplefrom pyps import Connection, EventListener

conn = Connection()
conn.connect(passwd='Swordfish')
conn.send('alert("Hello");', True)

print conn.send('$.version;', True)

def callback(message, *args):
    print message.command
    print message.content

def callback2(message, *args):
    print message.command
    print message.content
    print args

listener = EventListener(conn)
listener.start()
listener.subscribe('foregroundColorChanged', callback)
listener.subscribe('toolChanged', callback2, (True, 'xxx'))
listener.subscribe('currentDocumentChanged', callback)

## -- We need to keep the EventListener alive
while True:
    time.sleep(1.0)
Package: pyps4
MotivationThe intention for this project is to have a pure python implementation of theps4-wakerfeatures.Tested withPS 4 system version05030061.
05030061
05050031CredentialsCurrently there is no way to generate the credential file with this library.
The credential file can be used from the ps4-waker.Referenceshttps://github.com/dsokoloski/ps4-wakehttps://github.com/dhleong/ps4-waker
Package: pyps4-2ndscreen
PyPS4-2ndScreen|BuildStatus| |PypiVersion| |PyPiPythonVersions| |CodeCov||Docs|DescriptionA full Python implementation based on the Node.js package, ps4-waker, which is an unofficial API for the PS4 2nd Screen App.This module is mainly targeted towards developers although the module does include a basic CLI.Disclaimer:
This project/module and I are not affiliated with or endorsed by Sony Interactive Entertainment LLC. As such this project may break at any time.FeaturesThis module can perform almost every feature found in the PS4 Second Screen App.PS4 power and playing media state/status reportingRemote controlPower on and standby controlStarting a specific game/mediaMedia information retrieval from the Playstation StoreCompatibilityTested on:Environment: Python 3.6/3.7/3.8Operating System: DebianInstallationPackage can be installed with pip or from source.It is advised to install the module in a virtual env.Create virtual env first:.. code:: bashpython -m venv .
source bin/activateTo install from pip:.. code:: bashpip install pyps4-2ndscreenTo install from source clone this repository and run from top-level:.. code:: bashpip install -r requirements.txt
python setup.py installProtocolUDP is used to get status updates and retrieve user credentials. TCP is used to send commands to the PS4 Console.PortsThis module uses UDP port 1987 by default as the source port for polling the PS4.PS4 listens on ports 987 (Priveleged) to fetch user PSN credentials.In order to obtain user credentials, the Python Interpreter needs access to port 987 on the host system.
The credential service pretends to be a PS4 console and will receive broadcast packets from the PS4 2nd Screen app on port 987.Example:.. code:: bashsudo setcap 'cap_net_bind_service=+ep' /usr/bin/python3.5This is so you do not need sudo/root priveleges to run.Cover Art IssuesIf you find that media art cannot be found. Please post an issue with your Region, Country, Title of game, an ID of game.Known IssuesPS Command inconsistent.On-Screen Keyboard is not implemented.CreditsThanks to hthiery for writing the underlying socket protocol in Python.https://github.com/hthiery/python-ps4Referenceshttps://github.com/dsokoloski/ps4-wakehttps://github.com/dhleong/ps4-wakerhttps://github.com/hthiery/python-ps4.. |BuildStatus| image::https://circleci.com/gh/ktnrg45/pyps4-2ndscreen.svg?style=svg:target:https://circleci.com/gh/ktnrg45/pyps4-2ndscreen.. |PyPiVersion| image::https://badge.fury.io/py/pyps4-2ndscreen.svg:target:http://badge.fury.io/py/pyps4-2ndscreen.. |PyPiPythonVersions| image::https://img.shields.io/pypi/pyversions/pyps4-2ndscreen.svg:alt: Python versions
:target:http://badge.fury.io/py/pyps4-2ndscreen.. |Docs| image::https://readthedocs.org/projects/pyps4-2ndscreen/badge/?version=dev:target:https://pyps4-2ndscreen.readthedocs.io/en/dev/?badge=dev:alt: Documentation Status
.. |CodeCov| image::https://codecov.io/gh/ktnrg45/pyps4-2ndscreen/branch/dev/graph/badge.svg:target:https://codecov.io/gh/ktnrg45/pyps4-2ndscreen/:alt: Code Coverage
Package: pypsa-rd
Built with: Python for Power System AnalysisPlatform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Requires-Python: >=3
Description-Content-Type: text/x-rst
Provides-Extra: cartopy
Provides-Extra: docs
Provides-Extra: gurobipy
Package: pypsatopo
PyPSATopo is a tool that allows generating the topographical representation of any arbitraryPyPSA-based network (thanks to theDOT language). Besides easing the understanding of a network by providing its graphical representation, the tool helps debug it given that broken links and missing buses are shown in (slightly) different shapes and colors. Technically speaking, PyPSATopo can be thought of as areverse engineeringtool for PyPSA-based networks.To get a quick overview of the capabilities of PyPSATopo, simply launch it in a terminal as follows:pythonpypsatopo.pyThis will create a PyPSA-based network made of the following components:# create dummy (PyPSA-based) networknetwork=pypsa.Network(name="My Dummy Network")# add some dummy components to dummy networknetwork.add("Bus","oil")network.add("Bus","electricity")network.add("Bus","transport")network.add("Generator","oil",bus="oil")network.add("Generator","solar",bus="electricity")network.add("Load","vehicle",bus="transport")network.add("Store","battery",bus="electricity")network.add("Link","ICEV",bus0="oil",bus1="transport")network.add("Link","BEV",bus0="electricity",bus1="transport")... as well as generate the corresponding topographical representation of the network in the SVG format:
Package: pyPSCF
pyPSCFThe Potential Source Contribution Function is a tool to investigate the
geographical sources origin of chemical species in the atmosphere.See the UserGuide for detailed information.Compute large number of backtrajectoriesUnder the hoodhysplitis used to
compute backtrajectories. This GUI allows you to compute easily large number of
backtrajectories given a starting date and an end date.InstallSimply clone this repo if you are used to git:git clone https://gricad-gitlab.univ-grenoble-alpes.fr/webersa/pyPSCF.gitor download the zipped archive.You will need python and some other dependancies. See thedocs.Compute PSCFSelect parametersThe second tab of the GUI are the PSCF parameters.OutputA figure will show up with the PSCF in colorscale. You can clic on a gridcell to
see all the backtrajectories that pass through this gridcell.ContributionThis GUI is an adapted GUI from the game "The Battle For Westnoth", developed by
Elvish_Hunter, 2014-2015, under the GNU GPL v2 license.Original PSCF script: Jean-Eudes PETITNew PSCF script and GUI tools : Samuel WEBERIcons are taken from the Tango Desktop Project (http://tango.freedesktop.org)
and are released in the Public Domain.
Package: pypscloud
pypscloudCommon wrappers and tools in Python for the Powerside Cloud APIEnvironments and credentials can be configure using this json file format
[
{
"env": "production",
"user": "youraccount@company.com",
"pw": "GreatNews123!",
"base_url": "https://www.admin.cloud.powerside.com/v1/",
"data_bucket_upload":"bucked-name",
"aws_key":"if_you_have_one",
"aws_secret":"dont_share_it"
},
{
"env": "staging",
"user": "your_account_in_staging@company.com",
"pw": "thepassword33456!",
"base_url": "https://staging.admin.cloud.powerside.com/v1/",
"data_bucket_upload":"bucked-name",
"aws_key":"if_you_have_one",
"aws_secret":"dont_share_it"
}
]
Package: pypsdm
pypsdmpypsdm aims to make power system model analysis a breeze. It is based upon thePower System Data Model (PSDM).Its main functionalities include:parsing grid models and associated result datacalculation utilities for event discrete time series dataplotting capabilities for grid and result dataIt is currently under development. So if you want to use it, expect it to change quite frequently for now.InstallationTo add the project as dependency runpip install pypsdmorpoetry add pypsdmdepending on your depedency management system.If you want to clone and explore the repository locally, runpoetry installinside the repository root folder.
For more information about poetry, refer to theirdocumentation.DocumentationPlease refer to:docs/nbs/input_models.ipynbdocs/nbs/result_models.ipynbdocs/nbs/plotting_utilities.ipynbto see exemplary notebooks outlining some of the basic functionalities.Quickstart:You can read grid models viafrompypsdm.models.gwrimportGridWithResultsgrid_path="/path/to/my/psdm/grid"result_path="/path/to/my/psdm/results"gwr=GridWithResults.from_csv(grid_path,result_path)If you only want to read the grid model without the results# All relevant input models can be imported from `pypsdm/models/input`frompypsdm.models.inputimportGridContainergrid_path="/path/to/my/psdm/grid"grid=GridContainer.from_csv(grid_path)If you only want to read the results without the grid model# All relevant result models can be imported from `pypsdm/models/result`frompypsdm.models.resultsimportGridResultContainerresult_path="/path/to/my/psdm/results"results=GridResultContainer.from_csv(result_path)Known IssuesWhen adding the project as a dependency the language server of the code editors do not
suggest autoimports for all symbols of the project, which means they have to be imported
manually. It might  have something to do with how poetry publishes the artifacts. If you
have an idea what the issue could be any tipps are welcome.
Package: pypse
PythonPseudocode CompilerIntroductionPsPse is a interpreted compiler for teaching purposes.Features:Compile codes in AS-Level Computer Science SyllabusPortable with no environemt requirementsAvailable in Windows and LinuxContinuously developingI am a senior high student learning A2 Computer Science currently, and I am new to compilers. Feel free to raise issues or contribute.Why?Pseudocode is used to express ideas without truly writing code. However,AS-Level has specific grammar for this languageAS-Level International Test marks based on the grammarThere is no compiler for it, and there is no way to test it or execute it.As a result, there is a clear need to write such compiler, also as a project of mine for interest. :smirk:Get StartedFirst, Clone the repo in terminal:git clone https://github.com/HankelBao/PyPseNow, you will have the PyPse folder in your current path. CD to PyPse/bin/ and you will havepypse.binandpypse.exeunder the folder.If you are using Windows,.\pypse.exe ..\test\test.5.pseIf you are using Linux,.\pypse.bin ..\test\test.5.pseIf you see theHello World!message showing up just like the demo, you are ready to go!UsageRemember, you should always usepypse.binfor linux andpypse.exefor windows.Pseudocode File ends in.pse, so you should create a file with such extension for execution.Write your own pseudocode and execute it!ProgressWarnings and ErrorsFull types supportINTREALSTRINGBOOLMore...DeclarationArraysDictsCustom TypesDebug BlockAssignOutputInputIF...WHILE...REPEAT...FOR...Procedure...CALL...FUNCTION...RETURN...CASE...More Features...ContributingIf you want to see the debug info for the compiler, call the command with--debugFor example.\pypse.exe ..\test\test.5.pse --debugFeel free to report issues and make contributionsPromoteSpread it around your classes if you also find the need for such a compiler!Thanks for your support.