Saravanan666/pypi-org huggingface dataset:
Package: portkey-ai
Build reliable, secure, and production-ready AI apps easily.pipinstallportkey-ai💡 Features🚪 AI Gateway:Unified API Signature: If you've used OpenAI, you already know how to use Portkey with any other provider.Interoperability: Write once, run with any provider. Switch betweenany modelfromany providerseamlessly.Automated Fallbacks & Retries: Ensure your application remains functional even if a primary service fails.Load Balancing: Efficiently distribute incoming requests among multiple models.Semantic Caching: Reduce costs and latency by intelligently caching results.🔬 Observability:Logging: Keep track of all requests for monitoring and debugging.Requests Tracing: Understand the journey of each request for optimization.Custom Tags: Segment and categorize requests for better insights.🚀 Quick StartFirst, install the SDK & export Portkey API KeyGet Portkey API key here.$pipinstallportkey-ai
$exportPORTKEY_API_KEY=PORTKEY_API_KEYNow, let's make a request with GPT-4fromportkey_aiimportPortkey# Construct a client with a virtual keyportkey=Portkey(api_key="PORTKEY_API_KEY",virtual_key="VIRTUAL_KEY")completion=portkey.chat.completions.create(messages=[{"role":'user',"content":'Say this is a test'}],model='gpt-3.5-turbo')print(completion)Portkey fully adheres to the OpenAI SDK signature. This means that you can instantly switch to Portkey and start using Portkey's advanced production features right out of the box.🤝 Supported ProvidersProviderSupport StatusSupported EndpointsOpenAI✅ Supported/completion,/embedAzure OpenAI✅ Supported/completion,/embedAnthropic✅ Supported/completeAnyscale✅ Supported/chat/completionsCohere🚧 Coming Soongenerate,embed📝 Full Documentation|🛠️ Integration Requests|🛠️ ContributingGet started by checking out Github issues. Feel free to open an issue, or reach out if you would like to add to the project!
Package: port-labs
Port Resource ProviderThe Port Resource Provider lets you managePortresources.InstallingThis package is available for several languages/platforms:Node.js (JavaScript/TypeScript)To use from JavaScript or TypeScript in Node.js, install using eithernpm:npminstall@ediri/portoryarn:yarnadd@ediri/portPythonTo use from Python, install usingpip:pipinstallediri-portGoTo use from Go, usego getto grab the latest version of the library:gogetgithub.com/dirien/pulumi-port/sdk.NETTo use from .NET, install usingdotnet add package:dotnetaddpackageediri.PortConfigurationThe following configuration points are available for theportprovider:port:baseUrl(environment:PORT_BASE_URL) - This is the Port base URL.port:clientId(environment:PORT_CLIENT_ID) - This is the Port client ID.port:secret(environment:PORT_CLIENT_SECRET) - This is the Port secret.port:token- This is the Port token.ReferenceFor detailed reference documentation, please visitthe Pulumi registry.
Package: port-labs-port-pulumi
Port Resource ProviderThe Port Resource Provider lets you managePortresources.InstallingThis package is available for several languages/platforms:Node.js (JavaScript/TypeScript)To use from JavaScript or TypeScript in Node.js, install using eithernpm:npminstall@ediri/portoryarn:yarnadd@ediri/portPythonTo use from Python, install usingpip:pipinstallediri-portGoTo use from Go, usego getto grab the latest version of the library:gogetgithub.com/port-labs/pulumi-port/sdk.NETTo use from .NET, install usingdotnet add package:dotnetaddpackageediri.PortConfigurationThe following configuration points are available for theportprovider:port:baseUrl(environment:PORT_BASE_URL) - This is the Port base URL.port:clientId(environment:PORT_CLIENT_ID) - This is the Port client ID.port:secret(environment:PORT_CLIENT_SECRET) - This is the Port secret.port:token- This is the Port token.ReferenceFor detailed reference documentation, please visitthe Pulumi registry.
Package: portlandgeneral-api
portlandgeneral-apiAn unofficial Python library for requesting data from the Portland General Electric (PGE) API.Portland General (PGE):https://portlandgeneral.com/API:https://api.portlandgeneral.com/PGE GraphQL Endpoint:https://api.portlandgeneral.com/pge-graphqlInstallationThe package is availble via PyPi and can be installed with the following command:pip3 install portlandgeneral-apiTo install it from the repo, clone the repo and cd into the directory:git clone https://github.com/piekstra/portlandgeneral-api.git
cd portlandgeneral-apiYou can install this library withpip:pip3 install .ExamplesThere are two examples available, one for thePortlandGeneralApiand one for theOPowerApi.TestingThis project leverageswiremockto test the code to some extent. Note this will not protect the project from changes that Portland General makes to their API, but instead verifies that the existing code functions consistently as written.Local TestingNote that the tests setup leverages thelocal_env_vars.pyfile. The values for those environment variables need to be set based on the following:PORTLANDGENERAL_USERNAME:example@email.com- This must have parity with theemailin thebodyspecified intests/wiremock/mappings/jwt_request.jsonPORTLANDGENERAL_PASSWORD:portlandgeneral_password- This must have parity with thepasswordin thebodyspecified intests/wiremock/mappings/jwt_request.jsonIDP_HOST_OVERRIDE:http://127.0.0.1:9090- This URL is simplyhttp://127.0.0.1but the url port must have parity with thedocker-compose.yamlwiremock service's exposed httpport.API_HOST_OVERRIDE:http://127.0.0.1:9090- This URL is simplyhttp://127.0.0.1but the url port must have parity with thedocker-compose.yamlwiremock service's exposed httpport.To run tests, you will first need to start the wiremock service by running:docker-compose up -dThen, you can run the actual tests with the following command:pytest --verboseGitHub TestingThis project leverages GitHub Actions and has aworkflowthat will run these tests. The environment configuration for the tests must have parity with thelocal_env_vars.pyfile from thelocal testing.ReleasesReleases should follow aSemantic Versioningscheme.When changes have been made that warrant a new release that should be published, modify the__version__insetup.pyAfter the change is merged to themainbranch, go toreleasesandDraft a new release. TheTag versionshould follow the patternv1.0.0and shouldTargetthemainbranch.TheRelease titleshould not include thevfrom the tag and should have a reasonably detailed description of the new release's changes.Once the release has been published, the.github/workflows/python-publish.ymlGitHub Actions Workflow should trigger and automatically upload the new version toPyPiusing GitHub secrets credentials.Not-so-secret KeysCertain values found inconstants.pyare copied from thePortland General's Websitewhere they conveniently left their source maps. Those values are in factnottied to a personal account with Portland General, but are instead specific to their deployments.
Package: port-lens
PortLensA simple python port scanner which used to scanner open ports in a specific target.InstallationYou can install PortLens usingpip:pipinstallport-lensBasic UsageTo perform a basic port scan, you can use PortLens with the following command:port-lensscan<hostname><start_port><end_port>Scan Common PortsIf you want to scan common ports, you can omit the <start_port> and <end_port>:port-lensexample.comDisplay HelpTo display the help message and see all available options, use:port-lens--helpOutputPortLens will display the results of the port scan, including open ports and their associated services. You will receive an informative report like this:Scanningexample.comfromport1-1000:OpenPorts:80HTTP443HTTPS...Scancompletedin2.34seconds.ContributingContributions are welcome! If you encounter any issues, have feature requests, or want to contribute to the development of PortLens, please check our contribution guidelines.LicenseThis project is licensed under the MIT License.Happy scanning with PortLens! If you have any questions or need further assistance, please feel free to me.
Package: portmgr
dckrmgrPrerequisitesThe easiest way ist throughpip3(Ubuntu:apt-get install python3-pip):docker-py:pip3 install docker-pyjsonschema:pip3 install jsonschemaInstallationgit clone git@github.com:theascone/dckrmgr.git
mkdir -p /usr/local/src/dckr
mv dckrmgr/* /usr/local/src/dckr
ln -s /usr/local/src/dckr/dckrmgr /usr/local/bin/dckrmgrUsageDckrcnf.jsonExample:{
    "name": "phabricator",

    "image": {
        "name": "theascone/docker_phabricator",
        "version": "latest"
    },

    "hostname": "phabricator.weiltoast.de",

    "environment": [
        {
            "name": "MYSQL_USER",
              "value": "phabricator"
        },
        {
            "name": "MYSQL_PASS",
            "value": "xyz"
        }
    ],
    "volumes": [
        {
            "host_path": "var_log",
            "container_path": "/var/log",
            "mode": "rw"
        },
        {
            "host_path": "/var/run/docker.sock",
            "container_path": "/tmp/docker.sock",
            "mode": "ro"
        }
    ],
    "ports": [
        {
            "container_port": 22,
            "host_port": 22
        },
        {
            "container_port": 22280,
            "host_port": 22280
        }
    ],
    "links": [
        {
            "name": "mysql_phabricator",
            "alias": "mysql"
        }
    ]
}Equivalents to Docker CLI:DckrcnfDocker CLICommentname--nameimage(name, version)name:versionhostname--hostname (-h)environment[(name, value)]--env (-e)Json Arrayvolumes[(host_path, container_path, mode)]--volume (-v) host_path:container_path:modehost_path can be relative to location of dckrcnf.jsonJson Arrayports[(container_port, host_port)]--publish (-p) host_port:container_portJson Arraylinks[(name, alias)]--link name:aliasJson Arraydckrmgrdckrmgr [-h] [-D P_CWD_TOP] [-R] [-t] [-r] [-c] [-s]

optional arguments:
  -h, --help    show this help message and exit
  -D P_CWD_TOP  Set working directory
  -R            Use dckrsub.json files to recursively apply operations
  -t            Stop container
  -r            Remove container
  -c            Create container
  -s            Start container
Package: portmod
PortmodA cross-platform cli package manager for mods. Based on Gentoo'sPortagepackage manager.Seethe Documentationfor details onInstallationandSetup, andthe Wikifor supported Game Engines.Portmod is a community more than it is a single tool. As there are far more mods in existence than could possibly be packaged by the developers of portmod, we rely on community contributions from users to keep the mod package repositories accurate, up to date and relevant. See the game-specific guides onthe Wikifor details regarding how to contribute.FeaturesAutomatic Downloads (where possible): If direct links are available to mod archive files, portmod will fetch them automatically. As many mods have restrictive licenses and are distributed via sites which do not provide direct links, this is not always possible.Automatic patching: Mods are organized into packages which contain both the base mod and any necessary patches. Patches can be configured (in the package) to only be installed when certain other packages are installed, so that all you need to do when installing packages is choose the ones you want and all necessary patches will be included automatically.Automatic Configuration: Mod packages can declare optional features (calledUse Flags), which can either be independently enabled/disabled (local flags), or enabled/disabled along with other packages which share the same feature (global flags).Structure Awareness: Portmod's package files contain information about the directory structure of the archives which explain precisely how the mod should be installed.Automatic sorting (OpenMW): The install order and the load order of plugin and fallback archive files are sorted automatically based on rules defined in the packages. These rules can be customized withuser rules.Automatic updates: When mod updates are released and new package files are created in the portmod repository, you can find and update all your installed mods using a single command. Due to portmod requiring more information than upstream sources usually provide, will be a delay after the upstream mod is updated while new package files are created.Dependencies: Portmod will automatically install dependencies for the mods you ask it to install.Mod collections: Portmod supports both metapackages (packages containing lists of other packages which are distributed in the repository), as well as custompackage sets(easy to set-up package lists that exist in the user's configuration).Multiple Game Engines: Portmod just defines the package format and installation process, and has a programmable interface to allow custom game-engine-specific configuration. A list of supported Game Engines can be foundon the Wiki.CommunicationRelease announcements and other major news will be posted to theannouncement mailing list. This list is read-only (see below for the list you can contact).There are a number of ways to communicate with the developers and with other users:MatrixPortmod-metaspace.Mailing List -Page-EmailGitLab, via theIssue Trackerand theemail service deskOpenMW Forum Thread
Package: porto
Porto provides an unified and simplified access to various online stamp services. Currently supported are the following services:Deutsche Post: Internetmarke (Germany)InstallationThe simplest way to install Porto is using pip:pip install portoAdditionally, you can checkout the source code:git clonehttps://edugit.org/hansegucker/portoLicenseCopyright 2022 Jonathan Weth <dev@jonathanweth.de>Licensed under the MIT License (see LICENSE for more information).
Package: portolan
Convert betweencompass
pointsand
degrees. It’s a super tiny library with no dependencies.pip install portolanMethodsJust a few:point,traditional,degrees,middle,range.ExamplesConvert from abbreviations or a decimal degree to the compass point:importportolanportolan.point(abbr='nnw')# 'north-northwest'portolan.point(degree=275.1)# 'west'Convert to traditional names of the Mediterranean basin:portolan.traditional(degree=12.6)# 'Quarto di Tramontana verso Greco'portolan.traditional(abbr='NEbE')# 'Quarto di Greco verso Levante'Convert between degrees and abbrevations:portolan.abbr(145.0)# 'SEbS'portolan.middle('SEbS')# 146.25portolan.range('SEbS')# (140.625, 151.875)# Remember that North spans the originportolan.range('n')# (354.375, 5.625)# the degrees method returns the minimum, middle, and maximum of a compass pointportolan.degrees('SEbS')# (140.625, 146.25, 151.875)
Package: portoptpy
portoptpyAboutA Python library for interfacing with and conducting backtests using the Portfolio Optimizer API:https://docs.portfoliooptimizer.io/. All portfolio optimization methodologies require the historical returns of the portfolio's constiutent assets. By default, the library will obtain daily returns data from Yahoo finance for performing optimizations. Users can utilize their own returns data as long as it is passed in with the proper format:Must be a pandas DataFrame.Column indices must be ticker symbols.Row indices must be pandas Timestamps in ascending order.Cell values must be the returns of each asset with the type float64.For backtesting, the library utilizes asyncio and aiohttp to make concurrent calls to the Portfolio Optimizer API which significantly improves the speed of conducting backtests.InstallationpipinstallportoptpyAuthenticationAn API key is not required to use the Portfolio Optimizer API, however, authenticated users get full access to all endpoints more favorable API limits. Using this library for backtesting purposes will likely require an API key which can be obtained here:https://www.buymeacoffee.com/portfoliooptUsagefromportoptpyimportPortfolioOptimizerpo=PortfolioOptimizer(api_key='YOUR_API_KEY')Performing a single minimum variance portfolio optimization using a 63 day lookback period for calculating the covaraince matrix:portfolio=po.construct_minimum_variance_portfolio(symbols=['SPY','TLT','GLD','BTC-USD'],lookback=63)Backtesting an equal risk contributions portfolio using an exponentially weighted covariance matrix with decay factor of 0.95:backtest=awaitpo.backtest_equal_risk_contributions_portfolio(symbols=['SPY','TLT','GLD','BTC-USD'],lookback=63,covariance_type='exponential',decay_factor=0.95)backtest[['portfolio_equity_curve','benchmark_equity_curve']].plot()RoadmapAdd support for all endpoints.Add support for constraints for each portfolio optimization methodology.Add support for backtesting dynamic portfolios (i.e. Multi-Asset Momentum strategies).
Package: portopy
To initiate connection, simply do(portod must be started):>>> from porto import Connection
>>> rpc = Connection()
>>> rpc.connect()To create containertest:>>> container = rpc.Create('test')List all properties:>>> print rpc.Plist()List data:>>> print rpc.Dlist()Getcommandproperty of containertest:>>> print rpc.GetProperty('test', 'command')
>>> print container.GetProperty('command')  # the sameGet all properties of container:>>> print container.GetProperties()List containers:>>> print rpc.List()Destroy containertest:>>> rpc.Destroy('test')Close connection:>>> rpc.disconnect()
Package: portproxy
PortProxyTL;DR: Start and manage ssh tunnels just by browsing to easily-remembered URLs.ssh -N -f -L 8888:localhost:8888 you@machine->http://[portproxy]/machine1/8888.PortProxy is a simple service for forwarding ports dynamically
upon request from machine names found in your ssh config file.
Here's how it works. Say you have a config file in your ssh
that looks like this:Host machine1
    HostName machine1.internet.com
    User you

Host machine1
    HostName machine2.internet.com
    User youYou might want port8888from bothmachine1andmachine2(e.g.
you have a Jupyter notebook running on both). So, what you would
normally do is something like this:ssh -L 8888:localhost:8888 machine1
ssh -L 8888:localhost:8889 machine2and so on for each machine. If you have a lot of machines, the above
method can get a bit cumbersome. So, PortProxy handles all of this
under the hood. Your mental model of all of the ports on all remote
machines becomes like this:[PortProxy_url]/[machine_name]/[forwarded_port]For example, to get on port8888onmachine1, navigate tolocalhost:5000/machine1/8888in your browser, ifPortProxyis running onlocalhost:5000.And that's it!Installationpip install portproxyUsageJust run the server, one of two ways:❯ python -m portproxy
 * Serving Flask app "portproxy.portproxy" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 308-152-645or via❯ portproxy
 * Serving Flask app "portproxy.portproxy" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 308-152-645Then navigate tohttp://127.0.0.1:5000/, and happy forwarding!ReleasingDo the following steps:python setup.py sdistUpload it to test PyPI:pip install twine
twine upload --repository testpypi dist/*
pip install -U --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U portproxyMake sure you can install it and it works (e.g. run the examples). Now upload
to actual PyPI:twine upload dist/*
Package: port-pulumi
Port Resource ProviderThe Port Resource Provider lets you managePortresources.InstallingThis package is available for several languages/platforms:Node.js (JavaScript/TypeScript)To use from JavaScript or TypeScript in Node.js, install using eithernpm:npminstall@port-labs/portoryarn:yarnadd@port-labs/portPythonTo use from Python, install usingpip:pipinstallport_pulumiGoTo use from Go, usego getto grab the latest version of the library:gogetgithub.com/port-labs/pulumi-port/sdkConfigurationThe following configuration points are available for theportprovider:port:clientId- This is the Port client ID. (environment: PORT_CLIENT_ID)port:secret- This is the Port secret. (environment: PORT_CLIENT_SECRET)port:baseUrl(optional) - This is the Port base URL. (environment: PORT_BASE_URL)port:token- (optional) This is the Port token.
Package: por.trac
for more details visit:http://getpenelope.github.com/1.6 (2013-08-12)make sure new tracs sets PM for CC notifications [amleczko]refactor for penelope.core [amleczko]1.5 (2013-04-30)change post-commit hook [amleczko]1.4 (2013-04-23)fix SMTP problems with newly created tracs [amleczko]1.3 (2013-04-16)mandrill integration [amleczko]1.2.1.1 (2013-04-04)authz.ini patch [amleczko]1.2.1 (2013-04-02)add more verbose logging [amleczko]fix problem with strange smtp configuration [amleczko]fix trac reports and remove unsed fields [amleczko]add SVN authz manage screen [amleczko]1.2.0 (2013-02-18)sets Backlog’s date to now+1year [massimoazzolini]sets trac’s name and descr [massimoazzolini]removes default trac’s milestones, components, versions [massimoazzolini]fixes for project wizard [amleczko]1.1.10 (2013-02-15)fix problem with duplicated authz section [amleczko]1.1.9 (2013-01-31)fix cache keys for authz generation [amleczko]normalize repository URI [amleczko]1.1.8 (2013-01-30)move to github [amleczko]fixes for SVN integration [amleczko]Backlog is the new default milestone for newly created tracks [amleczko]
Package: port-range
Like Python’s standard libraryipaddress package, butfor ports.Stable release:Development:FeaturesSupport CIDR-like notation:>>>fromport_rangeimportPortRange>>>pr=PortRange('1027/15')>>>pr.port_from1027>>>pr.port_to1028>>>pr.bounds(1027,1028)Parse and normalize port ranges:>>>pr=PortRange(' 4242-42 ')>>>pr.bounds(42,4242)>>>str(pr)'42-4242'Enforce strong validation instrictmode:>>>PortRange(' 4242-42 ',strict=True)Traceback(mostrecentcalllast):File"<stdin>",line1,in<module>File"port_range/__init__.py",line62,in__init__self.port_from,self.port_to=self.parse(port_range)File"port_range/__init__.py",line109,inparseraiseValueError("Invalid reversed port range.")ValueError:Invalidreversedportrange.Access to decimal-representation properties:>>>pr=PortRange('1027/15')>>>pr.base1027>>>pr.prefix15>>>pr.mask1>>>pr.offset3LicenseThis software is licensed under theBSD 2-Clause License.Changes for v2.2.0 (2019-09-19)Fix Travis buildImplement equality and hash operatorsFix deprecated collections warningFull changelog.