Saravanan666/pypi-org huggingface dataset:
Package: aperturelib
Copyright (c) 2018 Alex Robbins, Darrien Kennedy, James SalvatorePermission 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.Description: # aperture-libAperture python library.Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independant
Package: aperture-py
🚀Just launched v1 ofmanaged rate limiting serviceSupport us with your feedback and questions onProduct HuntorDiscordRate Limiting for Python ApplicationsTheaperture-pySDK provides an easy way to integrate your Python applications
withFluxNinja Aperture. It allows flow
control functionality on fine-grained features inside service code.Refer todocumentationfor more
details.UsageInstall SDKRun the command below to install the SDK:pipinstallaperture-pyCreate Aperture ClientThe next step is to create an Aperture Client instance, for which, the address
of the organization created in Aperture Cloud and API key are needed. You can
locate both these details by clicking on the Aperture tab in the sidebar menu of
Aperture Cloud.fromaperture_sdk.clientimportApertureClient,FlowParamsagent_address=os.getenv("APERTURE_AGENT_ADDRESS",default_agent_address)api_key=os.getenv("APERTURE_API_KEY","")insecure=os.getenv("APERTURE_AGENT_INSECURE","true").lower()=="true"aperture_client=ApertureClient.new_client(address=agent_address,insecure=insecure,api_key=api_key)Flow FunctionalityThe created instance can then be used to start a flow:# business logic produces labelslabels={"user_id":"some_user_id","user_tier":"gold","priority":"100",}flow_params=FlowParams(check_timeout=timedelta(seconds=200),explicit_labels=labels,)# start_flow performs a flowcontrol.v1.Check call to Aperture Agent.# It returns a Flow or raises an error if any.flow=awaitaperture_client.start_flow(control_point="AwesomeFeature",params=flow_params,)# Check if flow check was successful.ifnotflow.success:logger.info("Flow check failed - will fail-open")# See whether flow was accepted by Aperture Agent.ifflow.should_run():# do actual workpasselse:# handle flow rejection by Aperture Agentflow.set_status(FlowStatus.Error)res=awaitflow.end()ifres.get_error():logger.error("Error:{}".format(res.get_error()))elifres.get_flow_end_response():logger.info("Flow End Response:{}".format(res.get_flow_end_response()))# Simulate work being doneawaitasyncio.sleep(2)return"",202The above code snippet is makingstart_flowcalls to Aperture. For this call,
it is important to specify the control point (AwesomeFeaturein the example)
andFlowParamsthat will be aligned with the policy created in Aperture Cloud.
For request prioritization use cases, it's important to set a higher gRPC
deadline. This parameter specifies the maximum duration a request can remain in
the queue. For each flow that is started, ashould_rundecision is made,
determining whether to allow the request into the system or to rate limit it. It
is important to make theendcall made after processing each request, to send
telemetry data that would provide granular visibility for each flow.
Package: aperturesynth
ApertureSynth is a command line tool for registering and combining
multiple photographs to form a single photograph with better properties.
It can be used to:Reduce noise by averaging, even in handheld photos.Simulate a longer exposure than would otherwise be possible using a
handheld camera.Control the location of the focal plane, including tilt shift effects
(though further optimisation is needed to handle this nicely.)Note that aperturesynth is currently experimental and is definitely to
be used at your own risk.UsageTake a series of photos in burst mode.If shooting in raw format, convert the raw files into a format
handled by PIL, such as png, tiff or jpeg. Note that it’s best to
avoid noise reduction and sharpening at this point. You might have a
series of photos 1.png, 2.png, 3.png.Run the command line application on the series of photographsaperturesynth combine --out fused.tiff 1.png 2.png 3.pngThis will fuse the three png images and save the result to
fused.tiff. The file 1.png will be the baseline image used to
register 2.png and 3.png.The baseline image (1.png) will appear in a window. Indicate the in
focus regions by selecting the top left and bottom right of each
rectangular focal patch. Consecutive pairs of points define each
rectangular window, the last point of an odd number of points will be
ignored. You can right click to undo a selection.Press enter when done to begin the fusion process.For additional help and to see all the options run:aperturesynth --helpInstallationThis software is written in Python, and currently requires a working
Python implementation to run. If you have a working Python installation
you should be able to install aperturesynth by running:pip install aperturesynthAlternatively you can install from source. First clone the project from
the website using fossil
` <https://hames.id.au/software/aperturesynth>`__, then run the setup.py
in the root directory to install the file.fossil clone https://hames.id.au/software/aperturesynth aperturesynth.fossil
mkdir aperturesynth; cd aperturesynth
fossil open ../aperturesynth.fossil
python setup.py installEither of these options should result in the installation of a
commandline tool called aperturesynth.Changes0.0.2The type of transform is now chosen based on the number of focal
regions specified. This allows registration of only one or two
points, instead of always requiring three or more.The commandline syntax has changed to allow multiple subcommands,
including a new way of saving and loading the focal region locations
to/from a file.0.0.1Initial proof of concept.
Package: ape-safe
Ape Safe: Gnosis Safe tx builderApe Safe allows you to iteratively build complex multi-step Gnosis Safe transactions and safely preview their side effects from the convenience of a locally forked mainnet environment.Installationpip install -U ape-safeQuickstartbrownieconsole--networkmainnet-forkfromape_safeimportApeSafesafe=ApeSafe('ychad.eth')dai=safe.contract('0x6B175474E89094C44Da98b954EedeAC495271d0F')vault=safe.contract('0x19D3364A399d251E894aC732651be8B0E4e85001')amount=dai.balanceOf(safe.account)dai.approve(vault,amount)vault.deposit(amount)safe_tx=safe.multisend_from_receipts()safe.preview(safe_tx)safe.post_transaction(safe_tx)SeeDocumentationfor more examples and full reference.
Package: ape-scroll
Quick StartEcosystem Plugin for Scroll support in Ape.Dependenciespython3version 3.8 or greater, python3-devInstallationviaapeYou can install this plugin usingape:apepluginsinstallscrollor via config file:# ape-config.yamlplugins:-name:scrollviapipYou can install the latest release viapip:pipinstallape-scrollviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/theref/ape-scroll.gitcdape-scroll
python3setup.pyinstallQuick UsageInstalling this plugin adds support for the Scroll ecosystem://sepoliatestnet
apeconsole--networkscroll:testnet

//mainnet
apeconsole--networkscroll:mainnetFor some potential rpc endpoints, seehttps://chainlist.org/?search=scroll&testnets=trueDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.
Package: apesmit-py2
THIS IS A FORKThe metadata for the Apesmit package by Florian Diesch indicates Python 3
compatibility, but it actually works fine with Python 2.  This fork just removes
the Python 3-only flag.What is ApeSmit?ApeSmit is a very simple Python module to create XML sitemaps
as defined athttp://www.sitemaps.org. ApeSmit doesn’t contain any web
spider or something like that, it just writes the data you provide to
a file using the proper syntax.UsageFirst we create an instance ofSiteMap:>>> sm=Sitemap(changefreq='weekly')Thechangefreqkeyword sets a default value for that parameter.Now we add some URL’s to our sitemap:>>> sm.add('http://www.example.com/')We may use some parameters:>>> sm.add('http://www.example.com/news/', changefreq='daily',
...                                        priority=1.0,
...                                        lastmod='1891-1-1')There’s a shortcut for URL’s that changed today:>>> sm.add('http://www.example.org/about.html', lastmod='today')That’s all for now. Next we need a file to write the sitemap in:>>> out=open('sitemap.xml', 'w')Now we write our sitemap and then close the file:>>> sm.write(out)
>>> out.close()And that’s the content of our shiny new sitemap:<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
        xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 <url>
  <loc>http://www.example.com/</loc>
  <changefreq>weekly</changefreq>
 </url>
 <url>
  <loc>http://www.example.com/news/</loc>
  <lastmod>1891-1-1</lastmod>
  <changefreq>daily</changefreq>
  <priority>1.0</priority>
 </url>
 <url>
  <loc>http://www.example.org/about.html</loc>
  <lastmod>2008-04-03</lastmod>
  <changefreq>weekly</changefreq>
 </url>
</urlset>
Package: ape-template
Quick StartThe ape-template plugin allows you to use cookiecutter to template an ape project.Dependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-templateviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-template.gitcdape-template
python3setup.pyinstallQuick UsageUse-hto list all the commands.apetemplate-hTo use thetemplatecommand, provide either a GitHub repository ID or a raw URI:apetemplategh:<githuborg>/<project>

apetemplate<URI>For more information on Cookiecutter, see theirdocumentation.DevelopmentPlease see thecontributing guideto learn more how to contribute to this project.
Comments, questions, criticisms and pull requests are welcomed.
Package: ape-tenderly
Quick StartEcosystem plugin for Tenderly support in Ape.Dependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-tenderlyviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-tenderly.gitcdape-tenderly
python3setup.pyinstallQuick UsageThis plugin works as a normal provider for forked mainnet networks only (e.g. Ethereum, Fantom, etc.).If you know your fork ID (from the Tenderly console) you can use that like thisexportTENDERLY_FORK_ID=...If you have an API service that automatically provisions tenderly forks, you can use it like thisexportTENDERLY_FORK_SERVICE_URI=...
Package: ape-titanoboa
Quick StartTitanoboa integration and pytest runnerDependenciespython3version 3.8 or greater, python3-devInstallationviapipYou can install the latest release viapip:pipinstallape-titanoboaviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-titanoboa.gitcdape-titanoboa
python3setup.pyinstallQuick UsageTODO: Describe library overview in codeDevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.
Package: ape-tokens
Quick StartA series of utilities for working with tokens, based on thepy-tokenlists.Dependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-tokensviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-tokens.gitcdape-tokens
python3setup.pyinstallQuick UsageCLI UsageFirst, install a token list, such as the1inchtoken list, which contains many tokens that you can use:apetokensinstalltokens.1inch.ethTo see all the tokens you can use, run command:apetokenslist-tokensTo see other available CLI commands, run:apetokens--helpPython UsageOne of the main reasons to use theape-tokensplugin is to have nicer UX for providing token amounts to contract transactions.
For example, let's say you have a smart-contract namedMyContractwith a functionprovideLinkToken()that takes a decimal value ofLINKtokens.
The following is an example script that deploys the contract and makes a transaction by expressing the value of LINK as8.23 LINK:fromapeimportaccounts,projectmy_account=accounts[0]contract=my_account.deploy(project.MyContract)contract.provideLinkTokens("8.23 LINK")Alternatively, if you need the converted value returned to you, you can use theconverttool from the rootapenamespace:fromapeimportconvertconvert("100.1234 BAT",int)Lastly, to get information about a token, including its contract address, you can do so by importing thetokensmember from the rootape_tokensnamespace:fromape_tokensimporttokensbat=tokens["BAT"]print(bat.address)
Package: ape-trezor
Quick StartApe Trezor is a plugin forApe Frameworkwhich integratesTrezorlib ethereum.pyto load and create accounts, sign messages, and sign transactions.Dependenciespython3version 3.8 up tp 3.11.Note: USB does not work in WSL2 environments natively and isnot currently supported.InstallationviapipYou can install the latest release viapip:pipinstallape-trezorviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-trezor.gitcdape-trezor
python3setup.pyinstallQuick UsageTrezor accounts have the following capabilities inape:Can sign transactions (both static-fee and EIP-1559 compliant)Can sign messages using the default EIP-191 specificationTo use the Trezor plugin, you must have the Trezor USB device connected and unlocked.WARNING: When the Trezor Suite is open, you may face additional connection issues.
It is recommended to not have the Trezor Suite application open while using the plugin.Add AccountsAdd accounts using theaddcommand:apetrezoradd<alias>You can also specify the HD Path:apetrezoradd<alias>--hd-path"m/44'/1'/0'/0"WARNING: When using 3rd party wallets, such as this plugin,trezorlibdiscourages signing transactions from the default Ethereum HD Pathm/44'/60'/0'/0.
Changing the HD-Path in that circumstance will allow fewer warnings from both Ape and the device, as well as improved security.
Seehttps://github.com/trezor/trezor-firmware/issues/1336#issuecomment-720126545for more information.trezor:hd_path:"m/44'/1'/0'/0"List AccountsTo list just your Trezor accounts inape, do:apetrezorlistRemove accountsYou can also remove accounts:apetrezordelete<alias>
apetrezordelete-allSign MessagesYou can sign messages with your accounts:apetrezorsign-message<alias>"hello world"Verify MessagesYou can also verify a message with a signature:apetrezorverify-message"hello world"<signature>DevelopmentPlease see thecontributing guideto learn more how to contribute to this project.
Comments, questions, criticisms and pull requests are welcomed.
Package: ape-tx
ape-txTransact using the command lineDependenciespython3version 3.8 or greater, python3-devInstallationviapipYou can install the latest release viapip:pipinstallape-txviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/unparalleled-js/ape-tx.gitcdape-tx
python3setup.pyinstallQuick UsageDeploy contracts:apetxdeployMyContractarg0arg1--senderAccountAliasCheck balances:apetxbalAccountAlias--networkethereum:mainnetTransfer money:apetxtransfer--fromAccountAlias--to0x8656bDDC790dA239824eE2eA782d350c80AA2Cf4--value"1 ETH"View transaction traces:apetxtrace0x053cba5c12172654d894f66d5670bab6215517a94189a9ffc09bc40a589ec04dMake calls:apetxcall\--network"ethereum:mainnet:alchemy"\--contract0x0A56d07a0B8Ba800358DdEEb20eb46a618BFBE27\--methodbalanceOf\0x8656bDDC790dA239824eE2eA782d350c80AA2Cf4Make transactions:apetxinvoke\--network"ethereum:mainnet:alchemy"\--contract0x0A56d07a0B8Ba800358DdEEb20eb46a618BFBE27\--methodtransfer\--senderAccountAlias\0x8656bDDC790dA239824eE2eA782d350c80AA2Cf4123DevelopmentThis project is in development and should be considered a beta.
Things might not be in their final state and breaking changes may occur.
Comments, questions, criticisms and pull requests are welcomed.
Package: ape-vyper
Quick StartApe compiler plugin aroundVVMDependenciespython3version 3.8 up to 3.11.InstallationviapipYou can install the latest release viapip:pipinstallape-vyperviasetuptoolsYou can clone the repository and usesetuptoolsfor the most up-to-date version:gitclonehttps://github.com/ApeWorX/ape-vyper.gitcdape-vyper
python3setup.pyinstallQuick UsageFirst, place Vyper contract source files (files with extension.vy) in your Ape project's contracts folder.
An example Vyper contract can be foundhere.
Then, from your root Ape project folder, run the command:apecompileThe.vyfiles in your project will compile intoContractTypesthat you can deploy and interact with in Ape.Compiler VersionBy default, theape-vyperplugin uses version pragma for version specification.
However, you can also configure the version directly in yourape-config.yamlfile:vyper:version:0.3.7EVM VersioningBy default,ape-vyperwill use whatever version of EVM rules are set as default in the compiler version that gets used,
or based on what the#pragma evm-version ...pragma comment specifies (available post-v0.3.10).
Sometimes, you might want to use a different version, such as deploying on Arbitrum or Optimism where new opcodes are not supported yet.
If you want to require a different version of EVM rules to use in the configuration of the compiler, set it in yourape-config.yamllike this:vyper:evm_version:parisNOTE: The config value chosen will not override if a pragma is set in a contract.InterfacesYou can not compile interface source files directly.
Thus, you must place interface files in a directory namedinterfacesin yourcontracts_foldere.g.contracts/interfaces/IFace.vy.
Then, these files can be imported in other.vysources files via:importinterfaces.IFaceasIFaceAlternatively, use JSON interfaces from dependency contract types by listing them under theimport_remappingkey:# Use `voting` example contracts from Vyperlang repo.dependencies:-name:VyperVotinggithub:vyperlang/vypercontracts_folder:examples/voting/version:v0.3.8# Automatically allow importing voting contracts in your project.vyper:import_remapping:-"voting=VyperVoting@v0.3.8"Import the voting contract types like this:# @version 0.3.10importvoting.ballotasballotPragmasApe-Vyper supports Vyper 0.3.10'snew pragma formatsVersion Pragma#pragma version 0.3.10EVM Version Pragma#pragma evm-version parisOptimization Pragma#pragma optimize codesize
Package: apex
Authentication, Form Library, I18N/L10N, Flash Message Template
(not associated with Pyramid, a Pylons project)Uses alchemyAuthenticationAuthentication has a single authentication id which can have multiple
associated credentials. A user can create a username and associate their
Facebook and Google login records with their current record and log in
with any of them. It is planned that Apex will act as an endpoint for
multi-domain multi-site installations - allowing one to associate a login
account from one domain to another.Local authentication uses salt + BCrypthttp://codahale.com/how-to-safely-store-a-password/Velruse is used for OpenID/OpenAuth providers and supportsGoogleFacebookTwitterYahooMicrosoft LiveBitbucketGithubIdenti.caLast.fmLinkedInAny OpenID providerAbility to overload the login form, extend the AuthUser class through
polymorphism or a Foreign Key user profile table.Form LibraryWTForms is used to help those transitioning over from Django to Pyramid.I18N/L10NBabel is used to support Internationalization and Localization.Flash MessagesTemplates and helpers for Mako and Jinja2 are included to support Flash
Messages in your application.apexid_from_token renamed to apex_id_from_tokenadded ‘add_auth’ function to allow secondary authentication providers
on a single auth_id
Package: apex-legends
apex-legendsPython wrapper forhttps://apex.tracker.gg/api.InstallationYou can install it via setup.pypython setup.py installor from pip:pip install apex-legendsUsageYou need to register for an api key athttps://apex.tracker.gg/Then it's just easy as:from apex_legends import ApexLegends

apex = ApexLegends("apex_api_key")

player = apex.player('NRG_dizzy')

print(player)

for legend in player.legends:
    print(legend.legend_name)
    print(legend.icon)
    print(legend.damage)Asynchronous CallsFor those who wish to use this API wrapper for their asynchronous applications, you may do so by calling theAsyncLegendsclass.WARNING: This portion of the wrapper is for use with Python version 3.5+.PEP 492released the keywordsasyncandawait,  as well as the magic methods__aenter__and__aexit__, which this portion of the wrapper takes advantage of. This results in the asynchronous class not being compatible with Python versions 3.4 and lower.importasynciofromapex_legendsimportAsyncLegendsfromapex_legends.domainimportPlatformmy_api_key='https://apex.tracker.gg api key here'asyncdefmain(api_key,player_name,platform=None):asyncwithAsyncLegends(api_key)asapex:player=awaitapex.player(player_name,platform=platformifplatformelsePlatform.PC)returnplayerloop=asyncio.get_event_loop()result=loop.run_until_complete(main(my_api_key,player_name='NRG_dizzy'))print(result)forlegendinresult.legends:print(legend.legend_name)print(legend.icon)print(getattr(legend,'damage','Damage not found.'))
Package: apex-legends-api
apex-legends-apiPython wrapper forhttps://apexlegendsapi.comInstallationYou can install it from source, or pip (recommended)Requirementspython >= 3.9Source installationpython ./setup.py installPip installationpip install apex-legends-apiUsageRegister for an API Key atApex Legends APIHere's a quick snippet to get startedAll method calls return a dictionary representing the JSON in the response.importsysfromapex_legends_apiimportApexLegendsAPI,\ALPlatform,\ALPlayer,\ALAction,\ALHTTPExceptionFromResponsefromapex_legends_api.al_baseimportprint_descriptionapi=ApexLegendsAPI(api_key='<api_key>')player_name=str("PlayerName")player_uid=str("1234567890")platform=ALPlatform.PCaction=ALAction.GET# Example 1:# straight API callstry:basic=api.basic_player_stats(player_name=player_name,platform=platform)# or query by UID# basic = api.basic_player_stats_by_uid(uid=player_uid, platform=platform)history=api.events(player_name=player_name,platform=platform,action=action)origin_player=api.get_player_origin(player_name=player_name,show_all_hits=True)exceptALHTTPExceptionFromResponseasexception:print(exception)sys.exit()print(basic)print(history)print(origin_player)# Example 2:# retrieve an 'ALPlayer' objectplayer:ALPlayer=api.get_player(name=player_name,platform=platform)print_description(player)NotesSee detailed documentation atReadTheDocsSeehttps://apexlegendsapi.comfor complete documentation.SeeCHANGELOG.mdfor history of changes