Saravanan666/pypi-org huggingface dataset:
Package: pyawscp
Python AWS Shell CockpitWhat is this about?This tool is a simple result, a "collateral-effect", born from the need of boring and repetitive tasks during interaction with AWS, while I was working on my duties.It's a Shell that has collection of pre-built commands that basically extracts informations: ASCII Views and also Visual Graphics from the AWS resources and their relationships.In a ordinary working day with Cloud, questions like below always poppup (frequently and recurrently):Which ELB is pointing to this EC2 Instance? Actually, is there any one?Which ELB or EC2 Instance it is the target of the DNS myproject.lof.middle.earth.org ?Is this Subnet is Public or Private after all?How many IP Addresses still left in all my VPCs?   Or... only tell me for this one here vpc-0123456789abcdef?Is there any S3 Multipart Uploads unfinished?   So, let's abort it... (this costs money and I cannot see them on AWS Console)Give me a List of all my VPC's Subnet, tell me also which one is PublicSo What?So, we could just use AWS Console, AWS CLI + Bash Script, Boto3, right? Well, pretty much it is what I was doing all the day around. But, I realized that:Interact with AWS Console it's counterproductive (boring, slow, ...)Manage to get the answers with AWS CLI (although more flexible than AWS Console), very often you have to run two, three commands to reach to the final answer.Besides, using AWS CLI, you have to mantain the used commands saved in some place (well commented) and available, like your library.As Python Boto3 is far most powerful than AWS CLI, it can offers you  tons of features to interact with AWS(it's not by chance that tools like Ansible Red Hat, after all, use it). I came up with the idea of build this sort-of "Shell" AWS utility to my day-to-day tasks, to help me, make therepetitionless boring and bring some agility as well. That's where was born this idea(well, also something to do on my spare time when I am bored)All the commands (that were and still are useful to me) are pre-packaged inside this Python Shell, now I only need to install the Python package and have everything available and documented to use it.All the commands (that were/are useful to me) are pre-packaged inside this Python Shell, I only need to install the Python package with everything available and use it.While working on this, some other ideas were popping up, like:Generate some visual graphs (exportable to DrawIO) as vision of the AWS resources and their relationships.An online navigator, where you can view (graphically and export also) your AWS Networking resources (online - a live view).I am always trying to add new features, when new needs or ideas are raising (of course when I have some off-time to dedicate to it).I am sharing the result of this, perhaps can be useful to somone else. Feel free to reach out to me with new ideas/suggestions, I will be glad to hear you.More at:https://ualter.github.io/pyawscp/
Package: py-aws-helper
Helper for AWS services like S3 written in python…PrerequisitesIAM user with read access to S3 and its secret keysAWS CLI configured with the secret keysPython, PipGetting StartedAssuming that theconfiguration of AWS CLIusing the corresponding secret keys of the IAM user, set up your environment using Python and virtualenv and install the library using pip once the virtual  environment is activated:$pipinstallpy-aws-helperUsing s3objectfinderSample snippet:>>>frompy_aws_helperimports3objectfinder>>>bucket=''# provide bucket name>>>file_name=''# provide file name>>>output=s3objectfinder.find_object(bucket=bucket,file_name=file_name)>>>print('Total objects fetched: ',output['total_objects_fetched'])>>>print('Total objects matched: ',output['total_objects_matched'])>>>forkeyinoutput['matched_keys']:print('Key: ',key)Other arguments:The s3objectfinder module can take in two additional paramters other than the bucket and file_name namely , “prefix” and “delimiter” whose default values have been initiated as empty strings.The corresponding documentation for populating the “prefix” and “delimiter” arguments can be foundhere
Package: py-aws-lambda-toolkit
Py aws Lambda ToolkitThis is a lightweight Python toolkit for easily and quickly creating AWS Lambda functions with the Serverless Framework. It includes the following features:DynamoDB shortcuts: Avoid boilerplate code for DynamoDB operations.HTTP event processing: Get the event of the HTTP request and parse it, splitting it into the path, query string, body, headers, etc.HTTP response shortcuts: Create HTTP responses with the correct format and status code.JWT authentication: Create and verify JWT tokens as easily as possible.Logger: Log messages with a format that is easy to read.Mappers: Remove specified fields from a dictionary or list of dictionaries.Parser: Convert dictionary keys to snake case or camel case.Password hashing: Hash passwords with salt and verify them.DynamoDB scan builder: Build a scan query with specified filters.Validator: Validate a dictionary with specified rules.InstallationInstall the package with pip:pipinstallpy-aws-lambda-toolkitUsageUse the package in your code:importloggingfrompy_aws_lambda_toolkit.http_eventimportprocess_eventfrompy_aws_lambda_toolkit.http_responseimportcreate_responsefrompy_aws_lambda_toolkit.statusimportStatusCodefrompy_aws_lambda_toolkit.loggerimportloggingstatus=StatusCode()defhandler(event,context):# Process the eventevent_data=process_event(event)event_body=event_data.get("body",{})logging.info("Event body:%s",event_body)# Create a responseresponse=create_response({"ok":True,"message":"Processed event successfully"},status=status.code_200_success,)returnresponseContributingContributions are welcome! For bug reports or requests pleasesubmit an issue. For code contributions please create a pull request.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.Further ReadingThis project is in an starting phase. More documentation will be added soon and the project will be improved with more features.
Package: pyawslog
python aws custom logA Python package to log message into aws cloud.IntroductionA Python package to log message into aws cloud.Installationpip3 install pyawslogUsagefrom pyawslog import log
logger = log(region_name='region name', 
          aws_access_key_id='access key',
       aws_secret_access_key='secret key',
        endpoint_url='https://logs.<region_str>.amazonaws.com')

LOG_GROUP='custom group name'
LOG_STREAM='custom stream name'

logger.create_log_group(LOG_GROUP)
logger.create_log_stream(LOG_GROUP, 'aws')
logger.log_message(LOG_GROUP, LOG_STREAM, 'Hello world, log message!')ContributingFork it!Create your feature branch:git checkout -b my-new-featureCommit your changes:git commit -am 'Add some feature'Push to the branch:git push origin my-new-featureSubmit a pull request :DHistoryTODO: Write historyCreditsTODO: Write creditsLicenseTODO: Write license
]]>
readmeContactPlease submit an issue if you encounter a bug and please email any questions or requests tocatchmaurya@gmail.com
Package: pyaww
OverviewAn API wrapper around the PythonAnywhere's API. The name stands forpythonanywherewrapper. The key-features are,Modern API wrapper using theasync/awaitsyntax100% API coverage, 100% testedObject-orientedFully documented & TypehintedCaching handledWe strive to provide an easy-to-use, batteries included modern API wrapper. The documentation can be foundhere,
for help please open anissue.InstallationThe required Python version for the module is3.9or above.# Linux/MacOS
python3 -m pip install pyaww

# Windows
py -m pip install pyawwQuick ExampleTo use this module, you first have to create an API key overhere.
After you've done that, copy the credentials and provide them to thepyaww.Userclass. It is advised that you donotmake your token public within the code, instead, you should store itsecurelyusing a package likepython-dotenv.This module is asynchronous meaning it utilises theasync/awaitsyntax.importpyawwimportasyncio# construct the user classclient=pyaww.User("sexychad420","my-python-anywhere-token")asyncdefcpu()->dict:"""Gets the CPU information."""returnawaitclient.get_cpu_info()asyncio.run(cpu())Using this module within PythonAnywhere webapps might be a little tricky as they only support WSGI at the moment.
However, you can run the function calls synchronously withasynciomodule if your desired web framework doesn't
support async syntax. Some back-end frameworks such asflasksupportasync syntax in the routes, example:fromflaskimportFlaskimportpyawwapp=Flask(__name__)client=pyaww.User("sexychad420","my-python-anywhere-token")@app.route("/")asyncdefcpu_usage():returnawaitclient.get_cpu_info()if__name__=='__main__':app.run()If there is no way that you can use theasync/awaitsyntax within your webapp, you can downgrade to>3.0.0versions
of this module.
Package: pyawx-client
pyawx-clientA python library for interacting with Ansible AWX instancesInstallationYou can install from pypi using pipbash pip install pyawx-clientUsageAWX provides an API v2 for interacting with it. Most of the API is supported but keep in mind this is in alpha
and not everything will be built yetThe Client object sort of works in the idea of SQLAlchemy... at least for now.Also, please be aware that models, or the python API could change since this project is still in Apha.Get a list of JobsfrompyawximportClientfrompyawx.models.jobsimportJobclient=Client("https://awx.mycompany.com",username="me",password="password")jobs=client.get_data(Job)Create a job templatefrompyawximportClientfrompyawx.models.jobsimportJobTemplateclient=Client("https://awx.mycompany.com",username="me",password="password")new_job=JobTemplate(name="My Job",description="Do some stuff",project=1)client.add(new_job)client.commit()Delete a job templatefrompyawximportClientfrompyawx.models.jobsimportJobTemplateclient=Client("https://awx.mycompany.com",username="me",password="password")job_template=client.get_data(JobTemplate)[0]client.delete(job_template)client.commit()
Package: pyax
pyaxClient library for macOS accessibilityThe library provides convenient entry points for retreiving accessible objects, and setting up notification observers.This library also PythonifiesAXUIElementandAXObserverand provides easy ways to access attributes, query the accessible element's heirarchy.Installation$pipinstallpyaxUsageSeeexamplesdirectory for in-depth use.Here is what a basic interactive session could look like:>>>importpyax>>>app=pyax.get_application_by_name('Safari')>>>print(app)[AXApplication | Safari]>>>web_root=app.search_for(lambdae:e["AXRole"]=="AXWebArea")>>>print(web_root)[AXWebArea | ]>>>forchildinweb_root:...print(child,child["AXDOMIdentifier"])[AXGroup | ] content[AXHeading | Navigation menu][AXGroup | ] p-personal[AXGroup | ] p-namespaces[AXGroup | ] p-views[AXGroup | ] p-search[AXGroup | ] p-logo[AXGroup | ] p-navigation[AXGroup | ] p-interaction[AXGroup | ] p-tb[AXGroup | ] p-coll-print_export[AXGroup | ] p-wikibase-otherprojects[AXGroup | ] p-lang[AXGroup | ] footerLicensepyaxwas created by Eitan Isaacson. It is licensed under the terms of the MIT license.
Package: pyax25
pyax25Python module to send AX25 UI messages over UDPax25 = pyax25.AX25(Source CallSign, AX25 IP Address, AX25 UDP Port, Source SSID [Default 0], Use UTC [Default False])Add a relay to the AX25 routingax25.addRelay(Relay Callsign, Relay SSID [Default 0])Send an APRS Bulletinax25.sendBulletin(message, group [Default None], line = 0):Group must be 5 chars, space paddedUsefull Groups:LOCAL: Local newsWXBLN: Weather BulletinAMBER: Amber AlertsSend an APRS Messageax25.sendMessage(message, group [Default BOM_WARN])
Package: pyaxehelper
pyaXeHelperInstallationpip install pyaxehelperThis package contains functions helping pyaXe. This works with:- pyaxe version '0.1.dev29+gf57de55.d20200106'

- sextractor version 2.19.5 (2014-11-16)Functions include:- change_catalog_order() edits and removes column order in a sextractor catalog. This is required by pyaxe as discussed in [#5](https://github.com/spacetelescope/pyaxe/issues/5) and [#6](https://github.com/spacetelescope/pyaxe/issues/6).

- change_magiso2magwavelength() edits a column in a sextractor catalog from MAG_ISO to MAG_F[WAVELENGTH] (e.g., MAG_F1392 for F140W images). This is required by pyaxe as discussed in [#5](https://github.com/spacetelescope/pyaxe/issues/5) and [#6](https://github.com/spacetelescope/pyaxe/issues/6).

- write_catalog() saves a text file similar to a sextractor catalog given a pandas dataframe.

- read_catalog() returns pandas dataframe of information in a sextractor catalog.

- select_source() returns an object from a sextractor catalog which is the closest to a given RADEC.

- make_meta() takes a list of files (both grism and direct) and reads their headers. Necessary information (e.g., filepath, filter, and expstart) are extracted and recorded in a dictionary form. This also calls _make_pairs() to make a suggestion for grism-direct pairs by selecting the grism-direct images having the closest expstart.

- _make_pairs() is internally used by make_meta() to return a suggestion of grism-direct pairs.

- prepare_folders() helps preparing folders GRISM/ and DIRECT/. It takes the dictionary output from make_meta() with the grism-direct pair suggestion (i.e., only GID is the input for this function), and processes grism and direct files stated in the dictionary. Each file is copied to the corresponding location. GRISM.lis and DIRECT.lis are constructed at the end.

- make_axelis() constructs an aXe.lis file. It takes GID (i.e., an output from make_meta) and utilizes grism-direct pair info.

- calculate_median() calculates median fluxes with sigma clipping using common wavelength grids (i.e., [WMIN,WMAX] with DW bin width. It reads lambdas and fluxes from pyaxe outputs (i.e., OUTPUT/*2.SPC.fits or OUTPUT/*2_opt.SPC.fits) given an object ID and the file list (i.e., FILES). Interp1d model is constructed, and is used to interpolate fluxes to the common grids. It returns WGRID and dataframe containing the common wavelength grids and dataframe of fluxes (columns: image number and median at the last column, row: parallel to the common wavelength grids), respectively.Known issues:- ?v.1.2.0- Implement: calculate_medianv.1.1.0- This version mainly implement helpers to reduce the amount of manual works required such as making grism-direct pairs, copying files to folders, and making .lis files.

- Implement: make_meta, _make_pairs, prepare_folders, make_axelisv.1.0.0- This version mainly implements helpers to construct a sextractor catalog to be complied with pyaxe requirements.

- Implement: change_catalog_order, change_magiso2magwavelength, write_catalog, read_catalog, select_source
Package: pyaxe-pandas
pyaxe-pandas对pandas进行配置文件操作，用yml文件对pandas进行操作，无须写一行代码即可分析数据。安装pip install pyaxe-pandas执行frompyaxe_pandasimportYamlPandasimportpandasaspddf=pd.DataFrame()yp=YamlPandas(df=df,yml='yaml配置文件地址')result=yp.resolve_config(yp.read_yaml())fordatainresult:print(data)语法文档语法文档生成初始化数据importpandasaspdimportrandomrandom.seed(100)df=pd.DataFrame({'age':[random.randint(10,100)foriinrange(2000)],'sex':['男'ifrandom.randint(10,100)%2==0else'女'foriinrange(2000)]})'''age	sex0	28	女1	68	女2	68	女3	32	女4	100	男...	...	...1995	14	女1996	33	女1997	23	男1998	92	女1999	76	女2000 rows × 2 columns'''一系列过滤操作# df#   age	sex#0	28	女#1	68	女#2	68	女#3	32	女#4	100	男#...	...	...#1995	14	女#1996	33	女#1997	23	男#1998	92	女#1999	76	女#2000 rows × 2 columns# 1、 大于50岁的人version:1.1.0operations:-operation:name:queryexe:age > 60 and sex =="男"---# 2、 大于60岁的男人version:1.1.0operations:-operation:name:queryexe:age > 60 and sex =="男"---# 3、 大于30岁的男人或者小于70岁的女人version:1.1.0operations:-operation:name:queryexe:(age > 60 and sex =="男") or (age < 70 and sex=="女")---# 4、 大于平均年龄的女人version:1.1.0operations:-operation:name:queryexe:age > age.mean() and sex =="女"条件过滤version:1.1.0operations:-operation:name:queryswitch:-regex:大于50岁# 大于50岁的人arg:text# 匹配的参数exe:age > 50stop:true-regex:大于60岁.+男# 大于60岁的男人arg:textexe:age > 60 and sex =="男"stop:true-regex:.+30岁的男人或者小于70岁的女人# 大于30岁的男人或者小于70岁的女人arg:textexe:(age > 60 and sex =="男") or (age < 70 and sex=="女")stop:true-regex:平均年龄.+女人# 大于平均年龄的女人arg:textexe:age > age.mean() and sex =="女"stop:true
Package: pyaxetool
PyAxeToolAn utility tool collection for make life easily.Examples# 显示单个文件的MD5
python3 -m PyAxeTool.MD5 file test.txt

# 显示所有满足通配符文件的MD5
python3 -m PyAxeTool.MD5 file "*.txt"

# 显示目录内所有文件汇总的单个MD5
python3 -m PyAxeTool.MD5 dir testdir

# 显示字符串的MD5
python3 -m PyAxeTool.MD5 str abc

# 通过lib模板创建CMake工程
python3 -m PyAxeTool.CMake archetype:generate lib --libname=foo
Package: pyaxis
pyaxisis a python library forPC-Axis (or PX)formatted data manipulation
which allows reading and writing PC-Axis[1]format with python, using the
DataFrame structures provided by the widely accepted pandas library[2].
PX is a standard format for statistical files used by a large number of
statistical offices. A package of software has been developed for this format:
PX-Win, PX-Web and PX-Edit.pyaxiseases reading and parsing of PX files data
and metadata into a pandas Dataframe and a dict structure, allowing their manipulation
in a tabular and pythonic manner.pyaxisis provided under the Apache License 2.0.[1]https://www.scb.se/px-enfor PC-Axis information[2]http://pandas.pydata.orgfor Python Data Analysis Library informationInstallationFor installation:pip install pyaxisUsageFrom PX to pandas DataFrameTypical usage often looks like this:from pyaxis import pyaxis

EXAMPLE_URL = 'http://www.ine.es/jaxiT3/files/t/es/px/2184.px'

px = pyaxis.parse(EXAMPLE_URL, encoding=encoding='ISO-8859-2')
print px['DATA']
print px['METADATA']
Package: pyaxml
READMEGENERAL INFOProject: Library to modify AXML fileAuthor: Benoît Forgette alias MadSquirrelLicense: GNU General Public License v3.0 and laterVersion: v1.0Date: 12-08-23GOALPyAxml is a full python tool to play with AXML (Android XML) files.
This tool is useful to decode and encode AXML files and manipulate AXML files
over aProtocol Buffersobject.
It is designed to work with Python 3 only.
Some examples of the use of the tool is provided with the project:copymanifest.py that allow to decode and reencode the original filereplace_activity_name.py to change the name an activity and replace by an
otherIf you want to see more example you can dig more on the projectapkpatcherthat use this
library to add some useful permission and inject a library inside the target
application.To have a better understanding about how is composed the AXML format a
graphic is associated in drawio and svg format: format.drawio, format.drawio.svgUSAGEYou can use 2 samples:$pythonexamples/copymanifest.pycode/tata2.xmltest.xmlto simply copy the AXML file to test.xml with reencodingThe second sample can replace the name of an activity inside an
AndroidManifest.xml:$androaxml.pycode/tata2.xml<manifestxmlns:android="http://schemas.android.com/apk/res/android"compileSdkVersion="30"compileSdkVersionCodename="11"package="exploit.intent"platformBuildVersionCode="30"platformBuildVersionName="11"><application><activityandroid:name="app.activity"/></application></manifest>
$pythonexamples/replace_activity_name.pycode/tata2.xmltest.xmlapp.activityapp.test
$androaxml.pytest.xml<manifestxmlns:android="http://schemas.android.com/apk/res/android"compileSdkVersion="30"compileSdkVersionCodename="11"package="exploit.intent"platformBuildVersionCode="30"platformBuildVersionName="11"><application><activityandroid:name="app.test"/></application></manifest>CHANGELOG
Package: pyaxmlparser
axmlparserA simple parser to parse Android XML file.UsageCLI :.. code-block:: shell$ apkinfo ~/Downloads/com.hardcodedjoy.roboremo.15.apk
APK: /home/chillaranand/Downloads/com.hardcodedjoy.roboremo.15.apk
App name: RoboRemo
Package: com.hardcodedjoy.roboremo
Version name: 2.0.0
Version code: 15
Is it Signed: True
Is it Signed with v1 Signatures: True
Is it Signed with v2 Signatures: True
Is it Signed with v3 Signatures: FalsePython package :.. code-block:: pythonfrom pyaxmlparser import APK


apk = APK('/foo/bar.apk')
print(apk.package)
print(apk.version_name)
print(apk.version_code)
print(apk.icon_info)
print(apk.icon_data)
print(apk.application)
Package: pyaxo-ng
This is a fork ofhttps://github.com/rxcomm/pyaxoaiming to update it to a more maintainable state.Check out thepy3branch for the oldpyaxowith python3 fixes.Notable ChangesChange symmetric encryption to AES128-SIV (from XSalsa20/Poly)Change KDF from pkdf2 to hkdf (sha512)
* Addedinforecommendation for KDF_RK
* Used RK as salt, DH as inputinsteadof concat (§5.2.KDF_RK)Change Chain/Message KDF to HMAC512 as recommendedUpdated3dhto X3DH specsAdded a simpler interface to create ratchet from X3DHChange datastore from sqlite3 to diskcacheMake everything Python3 compatibleA large amount of code trimming/refactoring/documentationOverviewThe Double Ratchet Algorithm is a protocol (similar to OTR) that
provides for perfect forward secrecy in (a)synchronous
communications. It uses triple Diffie-Hellman for
authentication and ECDHE for perfect forward secrecy.
The protocol is lighter and more robust than the OTR
protocol - providing better forward and future secrecy,
as well as deniability.The protocol was developed by Trevor Perrin and Moxie
Marlinspike. Its chief use currently is in the Open Whisper Systems
Signal package.A nice writeup of the protocol is on theOpen Whisper Systems Blog.
You can find the most recent specification of the protocolhere.Installation instructionsMake sure that you have the following:# If using Debian/Ubuntu
sudo apt-get install gcc libffi-dev libsodium-dev python-dev

# If using Fedora
sudo yum install gcc libffi-devel libsodium-devel python-devel redhat-rpm-configIf you usesetuptools, change to pyaxo’s source folder and install
with:sudo python setup.py installpyaxo will be ready for use!UsageThere are several examples showing usage. There are alsoencrypt_pipe()anddecrypt_pipe()methods for use in
certain applications. I haven’t put together an example using
them yet, but it should be straightforward.Bugs, etc. should be reported to thepyaxogithubissues page.
Package: py-Ayiin
Py - Ayiin LibraryCore library ofpy-AyiinPyrogram And Telethon based for your userbot.Installationpip3install-Upy-AyiinMade with ✨ byLicensepy-Ayiin is licensed underGNU General Public Licensev3 or later.CreditsAyiinXdforpy-AyiinDanforPyrogramLonamiforTelethon
Package: py-Ayra
py-Ayra LibraryCore library ofThe Ayra, a python based telegram userbot.Installationpip3install-Upy-AyraDocumentationUsageCreate folders namedplugins,addons,assistantandresources.Add your plugins in thepluginsfolder and others accordingly.Create a.envfile with following mandatory Environment VariablesAPI_ID
API_HASH
SESSION
MONGO_URICheck.env.samplefor more details.Runpython3 -m Ayrato start the bot.Creating pluginsTo work everywhere@ayra_cmd(pattern="start")asyncdef_(e):awaite.eor("Ayra Started!")To work only in groups@ayra_cmd(pattern="start",groups_only=True,)asyncdef_(e):awaiteor(e,"Ayra Started.")Assistant Plugins 👇@asst_cmd("start")asyncdef_(e):awaite.reply("Ayra Started.")See more working plugins onthe offical repository!Made with 💕 byKynan.LicenseNaya-Userbot is licensed underGNU Affero General Public Licensev3 or later.CreditsLonamiforTelethon