Saravanan666/pypi-org huggingface dataset:
Package: aptc
APTC: APTOS Client for Python[WIP] An easier RESTful client for APTOS chain thanofficial python client.Installationpipinstallaptc# updatepipinstall-UaptcUsageCreate a clientfromaptcimportnew_client,APTOS_NODE_URL_LIST,APTClient,HttpxProviderAPT_NODE_URL=APTOS_NODE_URL_LIST[0]# mainnetclient=new_client(node_url=APT_NODE_URL)# orclient=APTClient(HttpxProvider(APT_NODE_URL))# faucet clientclient=new_client(faucet=True)# claim apt from faucetclient.deposit('your address')Faucet clientThe devnet faucet may sometimes not work. Some APIs are not supported by faucet.fromaptcimportnew_client,Accountaccount=Account.generate()print('account address:',account.address())print('account private key:',account.private_key)faucet_client=new_client(faucet=True)txn_hash=faucet_client.deposit(account.address())print(txn_hash)Get information from blockchainmore:examples/example1.pyfromaptcimportnew_client,APTClient,HttpxProvider,APTOS_NODE_URL_LISTclient=new_client()client.get_ledger_info()client.check_health()example_address="0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd"client.get_account(example_address)client.get_account_balance(example_address)client.get_account_resources(example_address)client.get_account_transactions(example_address)# for some nft mint, get resources is useful to get nft info# here are one of bluemove nft mint infosome_address="your address"# some nft mint factorysome_resource_type="0xf9bf19f5077c196e5468510e140d1e3cbfa0681f67fe245566ceab2399a6388d::factory::MintedByUser"client.get_account_resource(some_address,some_resource_type)Send TransactionDetail information about transaction, please refer toexamples/example2.pyimportosimporttimefromaptcimportAccount,APT,new_clientclient=new_client()# submit transaction# load your private key, environment variableaccount=Account.load_key(os.environ['private_key'])account_address=account.address()# build a transaction payloadpayload={'function':'0x1::aptos_account::transfer','type_arguments':[],'arguments':["0x8d763223180a2b92f97755a3ea581f1c68d342275ca6118badff663f57aca7a5",# receiverstr(1*APT)# amount],'type':'entry_function_payload'}txn_dict={"sender":f"{account_address}","sequence_number":str(client.get_account_sequence_number(account_address)),"max_gas_amount":str(100_000),"gas_unit_price":str(100),"expiration_timestamp_secs":str(int(time.time())+100),"payload":payload,}# encode this transactionencoded=client.encode(txn_dict)# sign this transactionsignature=account.sign(encoded)txn_dict["signature"]={"type":"ed25519_signature","public_key":f"{account.public_key()}","signature":f"{signature}",}# submit transactiontx=client.submit_transaction(txn_dict)RefAptos Node APIAptos Python SDK
Package: apt_deps
Recursively resolve package dependencies using apt.InstallationOn Debian/Ubuntu: pip install apt_depsUsagecommand line:usage: apt-deps [-h] PACKAGES [PACKAGES ...]

Find recursive dependencies of installed package.

positional arguments:
 PACKAGES    package(s) to resolve dependencies

optional arguments:
 -h, --help  show this help message and exit
 -r, --recommends  Include "recommended" packagesPython:import apt_deps.get_deps
a = apt_deps.get_deps.DepFinder(['apt', 'nginx-extras'])
print(a.dep_set)
# get a different set of dependencies
a(['apache2', 'python'])
print(a.dep_set)FeaturesIt works 60% of the time, every time.BuildOn Ubuntu and Debian systems, you can apt-get install python-aptIf you want to build in a virtualenv, you need to do one of the following:
1) Initiate your virtualenv using site-packages
virtualenv –site-packages2) Install required system libs and install python-apt from source.
apt-get install g++ gcc libapt-pkg-dev
pip install git+git://anonscm.debian.org/apt/python-apt.git@1.1.0_beta1
Package: apt-histo
READMERead /var/log/apt/history.log.* and display it usefullyTake a look in CHANGELOG.md.Try to not fill to much memory, for small devices. So, often read files (no factorisation fornice_raw(),nice_raw_one_date(),nice_raw_between_dates()), event if it's slower.Please, if you want something more complete, look athttps://github.com/terminalforlife/apt-undo-install/blob/master/apt-undo-installsideInstall (without pain)After clone from GIT:Become root userCopyapt-histo.pyin/usr/local/binCopyShow_datas.pyandRead_histo.pyin/usr/local/lib/python3.X/dist-packagesAfter Pypi install:Become root userMake a link ofapt-histo.pyfrom/usr/local/lib/python3.X/dist-packages/apt-histo/apt-histo.pyto/usr/local/bin/apt-histo.pyln -s /usr/local/lib/python3.X/dist-packages/apt-histo/apt-histo.py /usr/local/bin/apt-histo.py
Package: aptible-api
aptible-apiPython client for api.aptible.com. Aptible's API is built on HAL+JASON so this
package includes a simplified engine for generating Resource types based on
JSON objects provided by the API / specifications indraft-kelly-json-hal-06Installationpipinstallaptible-apiUsageFist create an instance of the APIfromaptible.apiimportAptibleApiaptible_api=AptibleApi()Then authorize the application via either account credentials or a token.# Via account credentialsaptible_api.authorize(email='user@example.com',password='password')# Via a tokenfrompathlibimportPathfromjsonimportJSONDecodertokens_path=Path('~/.aptible/tokens.json')tokens_json=JSONDecoder.decode(tokens_path.read_text())token=tokens_json['https://auth.aptible.com']aptible_api.authorize(token=token)From here, you can interact with the API however you wish.accounts=aptible_api.accounts()account=next(accounts)account.handle# >>> 'demo-account'next(account.apps()).handle# >>> 'foodle'new_app=account.create_app(handle='foo-app')new_app.href# >>> 'https://api.aptible.com/apps/1337'ContributingFork the project.Commit your changes, with tests.Ensure that your code passes tests (pipenv run py.test) and meets pylint
style guide (pipenv run pylint).Create a new pull request on GitHub.CopyrightMIT License, seeLICENSEfor details.Copyright (c) 2021 TrialSpark, Inc. and contributors.
Package: apt-ios-repo
APT iOS RepositoryPython library for retrieve APT Repositories from iOS Jailbreak communityExamplefromapt_ios_repoimportAPTiOSSources,APTiOSRepositorysources=APTiOSSources([APTiOSRepository('https://evynw.github.io/'),APTiOSRepository('https://repo.twickd.com/'),APTiOSRepository('https://repo.packix.com/'),APTiOSRepository('http://apt.thebigboss.org/repofiles/cydia/'),APTiOSRepository('http://junesiphone.com/supersecret/'),APTiOSRepository('https://www.yourepo.com/'),APTiOSRepository('https://ryleyangus.com/repo/'),APTiOSRepository('https://sparkdev.me'),APTiOSRepository('https://repo.cpdigitaldarkroom.com/'),APTiOSRepository('https://cokepokes.github.io/'),APTiOSRepository('http://rpetri.ch/repo/'),APTiOSRepository('http://beta.unlimapps.com/'),APTiOSRepository('https://creaturecoding.com/repo/'),APTiOSRepository('http://xnu.science/repo/'),APTiOSRepository('https://cydia.angelxwind.net/'),APTiOSRepository('https://julioverne.github.io/'),APTiOSRepository('https://repo.dynastic.co/')])print([(package.package,package.version)forpackageinsources.get_packages_by_author('Ivano Bilenchi')])[('org.altervista.exilecom.icleaner','7.9.1'),('com.exile90.icleanerpro','7.5.6'),('com.exile90.icleanerpro','7.6.0'),('com.exile90.icleanerpro','7.6.1'),('com.exile90.icleanerpro','7.6.2'),('com.exile90.icleanerpro','7.6.4'),('com.exile90.icleanerpro','7.7.0'),('com.exile90.icleanerpro','7.7.1'),('com.exile90.icleanerpro','7.7.5'),('com.exile90.icleanerpro','7.8.3'),('com.exile90.icleanerpro','7.9.0'),('com.exile90.icleanerpro','7.9.1'),('com.ivanobilenchi.icleanerdarktheme','1.0.2'),('com.ivanobilenchi.icleanerdarktheme','1.0.2')]
Package: aptivate-cli
aptivate-cliFully automated luxury Aptivate command line interface.Cheatsheet reference.Command reference.Migrate project from DYE.Environment variables for configurationLatest changes from CHANGELOG.md.Install ItThe tool is compatible with Python 3.5+ onwards.$python3-mvenv.venv
$source.venv/bin/activate
$pipinstallaptivate-cliHack ItYou'll have to installpipenvand then:$gitclonegit@git.coop:aptivate/aptivate-cli.git&&cdaptivate-cli
$pipenvsync--dev
$pipenvrunpipinstall--editable.
$pipenvrunapc--helpTest ItWe usetoxfor testing.$pipenvrunpytest
$pipenvruntox-epy36See thetox.inifor configuration.Release It$makepublish
Package: aptk
aptk - A Parse Toolkit======================This is a module for creating parsers from grammars.  aPTK targets to makethis in a very "documented" way.  So you can define the grammar in doc-stringof your grammar class or even in your reStructuredText documentation... highlight:: aptkA simple example of a greeting parser:::grammar GreetingGrammar<greeting>        := <greeting-clause> <.ws> <greeted><ws>              := \s+<greeting-clause> := "hello" | "hi"<greeted>         := \w+This will create a class named `GreetingGrammar`.  First rule in thegrammar will be used as start-rule for a normal parsing.  Parsing arule, will result in a ParseTree.  Here follows an example of rule``<greeting>`` matching "hello world"::<greeting> ~~ "hello world"-> greeting(greeting-clause( 'hello' ),greeted( 'world' ))Actually what you see above is a test assertion for applying rule greetingto string "hello world", what is expected to result in the parse-treedisplayed above.But read more in `aptk's documentation`_... _aptk's documentation: http://aptk.readthedocs.orgDownload--------You can download this package from PyPI_... _PyPI:: http://pypi.python.org/pypi/aptk#downloads.. highlight:: bashOr install it with easy_install::easy_install -U aptkor get the the source from source code repository from bitbucket.org::$ hg clone https://bitbucket.org/klorenz/aptkBuilding Documentation----------------------For building documentation you need sphinx, you can get it using::$ easy_install -U SphinxThen you can::$ cd docs$ make html$ firefox _build/html/index.htmlLicense-------Licensed under New BSD License, see LICENSE.txt.Release Notes-------------======= =================================================================Version Notes======= =================================================================0.6.4   fix setup issue0.6     Backtracking for Operation Precedence0.5.7   add comments0.5.4   first tests for postcircumfix pass, more tests, cleaned code a bit0.5.3   Added operation precedence parser. Pretty simple yet, but supportsinfix, postfix, prefix, circumfix operations. postcircumfix isalso implemented but not tested at all others are partly tested.0.5     Starting with version 0.5, which shall indicate, that there isstill a lot to do.Especially documentation is far from complete and it containssome passages, which are already outdated.Next releases will focus on documentation and testing and addingan operator precendence parser.======= =================================================================
Package: apt-local
apt-localSimple symlink-based package manager for local installations (without sudo)Free software: GNU General Public License v3Documentation:https://apt-local.readthedocs.io.FeaturesMeant for Debian-based distributions: such as Debian / Ubuntu /
Linux Mint and so on.This package is born out of the frustration of a typical grad student
who has no admin-rights over the machine, and has to rely on the
system-admin over and over for installation of that "X" package.RequirementsDebian-based OS or atleastdpkg,apt-getandapt-cacheinstalledGNU Stow:HTTP|FTP|Git|CPANIf Stow is not available in the system you may usethis
scriptto install it.WarningThis is an experimental project, and often results in hit-or-miss
situation. The advantages with apt-local is a lightweight installation
and installing packages requires no compilation. If you want a more
robust package manager use one of the following:NixOS/nixconda/condafsquillace/junestbpkg/bpkgQuick startInstall the package usingeitherof the following commandspythonsetup.pyinstall--user# with the source codepipinstallapt-local--user# without the source codeTo get started choose a local directory where you would like the package
to be installed. For example~/.localor<path-to-scratch-directory>/.localand a directory calledapt-cache(name can be anything)under it(very important!). This can simply
be done as:apt-localset-path~/.local/apt-cache
apt-localshow-pathInstalling a.debpackage is made as simple as:usage:apt-localinstall[-h]pkg

positionalarguments:pkgFor exampleapt-local install wget.UsageThe subcommands serve self-explanatory purposes. The subcommandsset-pathandshow-pathare used to configure path and display the
configured path respectively.usage:apt-local[-h]{install,uninstall,list,set-path,show-path}...

positionalarguments:{install,uninstall,list,set-path,show-path}optionalarguments:-h,--helpshowthishelpmessageandexitMake your installation useable by setting up environment variables such
asPATH,LD_LIBRARY_PATH,CPATHetc. in the~/.profileor~/.bashrc. The following snippet can be adapted:exportPATH=$PATH:$HOME/.local/binexportCPATH=$CPATH:$HOME/.local/includeexportLIBRARY_PATH=$LIBRARY_PATH:$HOME/.local/libexportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/libCreditsThis package was created withCookiecutterand theashwinvis/cookiecutter-pypackageproject template.History0.0.2b1 (2019-09-04)Option-yfor install and uninstall0.0.2b0 (2019-05-15)No need to change directoryNow supports uninstall, list and other configuration optionFlattten usr dirAvoid duplicate dependenciesAdd search subcommandRefactor to use src/ layout using cookiecutter0.0.1b0 (2018-01-19)First release, simple install option alone
Package: apt-log
apt-logapt-logis a command-line tool that offers a user-friendly display and convenient filtering for APT package logs.The package also contains a Python module that provides a parser and high-level interface to APT package logs.Quick NavigationInstallationUsageLicenseInstallationRequires Python version 3.9 or higher and pip.pipinstallapt-logUsageExpore the entire historyapt-loglistQuick filtersby time range:apt-loglist-s2023-01-01-e2023-01-31by a specific package or multiple packages using glob-style pattern matching:apt-loglist-npython3
apt-loglist-n'python3.*'Dive into detailsInspect a specific log entry using the assigned ID in the list.apt-logshow13Note:The IDs are not generated by APT itself but are assigned byapt-login ascending chronological order. Be aware that any manipulation of APT log files, such as the deletion of old log files, may result in changes to these IDs.Licenseapt-logis distributed under the terms of the MIT License.
Package: aptly-api-client
Python 3 Aptly API clientThis is a thin abstraction layer for interfacing withAptly’s HTTP API. It’s used byGoPythonGo, but can be used as
a standalone library from Pypi.pipinstallaptly-api-clientUsageThe library provides a direct abstraction of the published Aptly API, mostly
using the same naming, only replacing it with pythonic naming where necessary.
All code has fullPEP 484annotations, so if you’re using a modern IDE, using this library should be
especially straight-forward.Where appropriate, the library exposes the interface of the underlyingrequestslibrary. This allows you to configure CA pinning, SSL client
certificates, HTTP Basic authentication etc.# initialize a clientfromaptly_apiimportClientaptly=Client("http://aptly-endpoint.test/")# create a repositoryaptly.repos.create("myrepo",comment="a test repo",default_distribution="mydist",default_component="main")# upload a packageaptly.files.upload("test_folder","/tmp/mypkg_1.0_amd64.deb")# add the package to the repoaptly.repos.add_uploaded_file("myrepo","test_folder")Contributors@findmyname666 <findmyname666@users.noreply.github.com>Filip Křesťan <fkrestan@users.noreply.github.com>@mgusek <mgusek@users.noreply.github.com>Samuel Bachmann <samuelba@users.noreply.github.com>@agustinhenze <agustinhenze@users.noreply.github.com>LicenseCopyright (c) 2016-2019, Jonas Maurus and Contributors.
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS 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 COPYRIGHT HOLDER OR CONTRIBUTORS 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: apt-mirror
apt-mirror2apt-mirror2is the Python/asyncio reimplementation of theapt-mirrordeveloped as drop-in replacement for the latest.This project should be suitable as generalapt-mirrorreplacement.RequirementsPython 3.10 is the minimum supported version.For additional dependencies look to thepyproject.ymland/orrequirements.txt.InstallationDockerDocker image is available in the Docker Hub underaptmirror/apt-mirror2repository.
You can try it usingdockerrun-it--rmaptmirror/apt-mirror2--helpPyPiPyPi package is available with the nameapt-mirror:pipinstallapt-mirror
apt-mirror--helpBuild from source with virtualenvIt's possible to useapt-mirror2from a virtualenv:# Let's work in the home foldercd# Create virtualenvvirtualenv~/venv/apt-mirror2source~/venv/apt-mirror2/bin/activate# Clone apt-mirror2 source codegitclonehttps://gitlab.com/apt-mirror2/apt-mirror2cdapt-mirror2# Install requirementspipinstall-rrequirements.txt# Install apt-mirror2 into virtualenvpythonsetup.pyinstall

apt-mirror--helpUsageAs the drop-in replacement for theapt-mirrorthis project supports same CLI syntax.usage: apt-mirror [-h] [--version] [configfile]

positional arguments:
  configfile  Path to config file. Default /etc/apt/mirror.list

options:
  -h, --help  show this help message and exit
  --version   Show versionapt-mirror configuration compatibilityMost ofapt-mirrorconfiguration directives are supported.As of now proxy for FTP repositories is not supported.In addition there are some enhancements available:Repositories without MD5 hashsums are correctly mirroredOld index files are properly cleaned and don't produces errors in mirror processingStandard source.list[ arch=arch1,arch2 ]can be used to specify multiple repository architectures for mirroring.mirror_path URL PATHoption may be used to specifyPATHto use for saving mirror files instead of path that is generated fromURL.Additional configuration is loaded from the*.listfiles in the directory named same asconfigfilewith the.dsuffix. Eg/etc/apt/mirror.list.d/*.list.Rate limit is enforced for overall download rate.Non-zero exit code is returned if some of required files were not downloaded due to network or server errors or
no repositories were configured.HTTP user agent can be configured viauser_agentconfiguration.Configuration variables are exposed to postmirror_script.by-hashlist option can be used to control whetherAcquire-By-HashRelease option should be respected or enforced.LicenseGNU General Public License v3.0 or later
Package: apt-mirror-python
apt-mirror rewritten by PythonThis project is started as a line by line translate from apt-mirror 0.5.4, so it is 100% compatible with apt-mirror config file.In v0.2 it becomes an object-oriented program.Usage:Get help fromhttp://apt-mirror.github.com/Todo:Automatically check the checksum of index files before download archive files.If check failed, retry several times.threading.Queue for download threads.Accept command line arguments to override variables from mirror.list file.Any improvement is welcome.
Package: ap-topical
TopicalA simple, lightweight event pipeline in Python.Installationpipinstallap-topicalUsageimportlogging,asyncioimportap.topicallogging.basicConfig(level=logging.INFO)logger=logging.getLogger(__name__)@ap.topical.event('start')asyncdefstart_handler(payload):"""Do stuff here"""awaitap.topical.publish('end',payload)@ap.topical.event('start')asyncdefstart_auditor(payload):logger.info('auditing start event')@ap.topical.event('end')asyncdefend_handler(payload):"""Do stuff here"""asyncmain():awaitap.topical.publish('start',{})if__name__=='__main__':asyncio.run(main())EventsEvents are strings (or other hashable objects) that are published viaap.topical.publish(). These are used as both a topic and a specific event.Subscribing Callbacks to EventsYou can subscribe a callback to a given event usingap.topical.subscribeas in the following example:asyncdefmy_event_handler(payload):...ap.topical.subscribe('my-event',my_event_handler)Additionally, you can use the handy@ap.topical.event()decorator to do this for you automatically:@ap.topical.event('my-event')asyncdefmy_event_handler(payload):...Publishing EventsEvents can be published by providing an event and a payload to pass between event handlers.awaitap.topical.publish('my-event',{})Multiple HandlersA given event can have any number of handlers (limited by available compute resources). These will all trigger asynchronously.@ap.topical.event('start')asyncdefstart_handler(payload):...@ap.topical.event('start')asyncdefstart_auditor(payload):...awaitap.topical.publish('start',{})This allows you to create robust graphs of event handlers.Future Plansadd unsubscribe functionalityadd wildcard event supportadd default event payload supportadd payload validation via msgspec
Package: aptos-indexer-protos
Aptos Indexer ProtosThis repository contains the protobuf definitions for the Aptos Indexer tech stack.UsageImport generated classes like this:from aptos_indexer_protos.aptos.transaction.v1.transaction_pb2 import TransactionThen use them like this:def parse(transaction: Transaction):
    # Parse the transaction.ContributingSeeCONTRIBUTING.mdfor more information.