Saravanan666/pypi-org huggingface dataset:
Package: p5two
Write your p5js sketches with python and automatically launch them in a new window just by running your script.no htmlno javascriptjust pythonAlso included: autoreload on save!Installationpip install p5twoUsageopen your favourite editor and create a new file<script.py>and save it wherever you wantfrom p52 import *

def setup():
    createCanvas(windowWidth, windowHeight)
    stroke(100, 100, 100, 100)
    noFill()


def draw():
    background(51)
    ellipse(mouseX, mouseY, 30, 30)open a terminal, move to the folder where you saved the script and run it withpython3 <script.py>or just use your editor "run" button if available.A new window should popup with your sketch!Bonus: try changing your code and saving, the changes should automatically be reflected in the sketch.Extra functionalitiesI decided to put some extra functionalities that diverge from standard python and p5js practices because I found them more convenient:magicselfTired of having to define vars beforesetup()in order to have them available insidedraw()? now you can define vars inside a "fake"selfobject like this:from p52 import *

def setup():
    createCanvas(windowWidth, windowHeight)
    stroke(100, 100, 100, 100)
    noFill()
    self.point = (100, 100)


def draw():
    background(51)
    line(0, 0, *self.point)sketch saving and reloadingwhen viewing your sketch you can press "s" to save a screenshot of it inside the current folder. Likewise you can press "r" to reload the sketch.utility functionscanvas()creates a canvas without having to specify its dimensions, defaulting to full window sizecenter()changes the coordinate system: (0, 0) is now in the center of the sketch and the y-coordinates go upwardsmore to come...inject js libraries (experimental!)if you have a js library that you would like to use inside the sketch you can download it and put it into the same folder as your python sketch and useinjectJs('library.js'). Doing so automatically include the library inside the generated html file.How does it work?This package is heavily inspired by the library pyp5js and leverages transcrypt to compile python to javascript behind the scenes.
Package: p600syx
p600syxThis is a collection of python modules for handling MIDI SysEx patch
dumps for the Sequential Circuits Prophet-600 analog synthesizer.The following formats are supported:The original patch format documented in the owner's manualThe custom format introduced by GliGli (documentation)The updated dump formats by Imogen (versions7and8)The available executable programs are:p600_decode- decode patch data to human readable formp600_recv- receive patch data via MIDIp600_send- send patch and other SysEx data (i.e. firmware files) via MIDIInstallation and usageThe easiest way is to install the software fromhttps://pypi.orgusingpip:pip install p600syxAfter installing the package, checkp600_SCRIPTNAME -hfor further usage instructions.
Package: p65a
p65aPythonic 6502 Assembler: An experimental alternative to traditional assemblers.At this point I'm unsure whether it's a useful concept or not, but I quite enjoy
writing code this way. Consider the API to be unstable.See theexamples/directory for examples of code written using this library.Here's a snippet fromexamples/bootloader.py, which showcases a few nice features:[...,lbl.CRC_LUT_HI,Db([crc16(bytes([i]))>>8foriinrange(0x100)]),lbl.CRC_LUT_LO,Db([crc16(bytes([i]))&0xffforiinrange(0x100)]),lbl.crc_update,# input: A, clobbers: A, YA<=A^zp.crc_hi,Y<=A,A<=zp.crc_lo,A<=A^lbl.CRC_LUT_HI[Y],zp.crc_hi<=A,A<=lbl.CRC_LUT_LO[Y],zp.crc_lo<=A,RTS(),...]This snippet implements a CRC16 checksum function. The lookup tables are generated
automagically by Python list comprehensions.
Each "line" of assembly is an expression contained within a Python list. The<=operator is overloaded to express assignment.It is possible to make forward-references to labels. They are treated as symbolic
expressions until the layout of code is known (and thus, their concrete value),
and then the machine code can finally be finally emitted.TODOMake an installable packagePut it on pypiRefactor - there's a lot of code in places it shouldn't beDocumentation
Package: p67-awstools
P67-awstoolsHelper tools for common AWS activities. Currently still in heavy development. For now, it provides two functionalities:1. Autoscaling Group Management (cli_scale_ec2_asg)This Python script provides functionalities to manage autoscaling groups in AWS. It utilizes the Boto3 library to interact with the AWS Autoscaling and EC2 services.PrerequisitesPython 3.xBoto3 librarycli_scale_ec2_asgusageRun the script and select an action:Enter1to show instance uptimes for all autoscaling groups.Enter2to scale an autoscaling group to a desired size.If you choose to show instance uptimes, the script will display the running duration of each instance in each autoscaling group.If you choose to scale an autoscaling group, you will be prompted to enter the numbers of the autoscaling groups you want to scale, separated by commas. Then, enter the desired size for the autoscaling group.The script will update the specified autoscaling groups with the desired size, and display a confirmation message.Note:Ensure that the AWS credentials used by the script have appropriate permissions to describe and update autoscaling groups.The script currently supports a maximum of 100 autoscaling groups due to the default value used in thedescribe_auto_scaling_groupsfunction. Modify theMaxRecordsparameter in theget_autoscaling_groupsfunction if you have more than 100 autoscaling groups.2. IAM User Password and Access Key Management (aws_passwd_rotate)This Python script provides a way to change the password of an IAM user in AWS and manage their access keys. It utilizes the Boto3 library to interact with the AWS IAM service.password_rotateUsageRun the script and enter the following information:Enter your current password: Enter the current password of the IAM user.Enter your new password: Enter the desired new password for the IAM user.The script will change the IAM user's password to the new password provided.All existing access keys for the IAM user will be disabled.A new access key will be created for the IAM user.The script will print the new access key information, including the Access Key ID and Secret Access Key. Make sure to save this information securely as it will not be accessible again.Note:Ensure that the AWS credentials used by the script have appropriate permissions to manage IAM users, change passwords, and create/delete access keys.The IAM user specified in the script must have sufficient permissions to change their own password and access key.Review and modify the script as necessary to meet your specific requirements and security practices.LicenseThis project is licensed under theMIT License.
Package: p6-barrier
P6Barrier is anAWS CDK Constructthat deploys aCustom Resourcewhich
will poll untilAWS Lambda FunctionisReadyreturns true. Ideal for running
code AFTER anRDSorEKSis ready.P6BarrierP6BarrierBadgesDistributionsSummaryUsageExample 1 - External LambdaExample 2 - CDK Lambda (same stack)ContributingCode of ConductChangesAuthorsBadgesDistributionsSummaryUse this to wait for anRDSor for that matter anything to become ready.This deploys a Custom Resource which is obviously backed by anAWS Lambda.
Thislambdacalls thelambdawithArnfunctionArn.This function should return the string 'True' if the resource is ready.
Otherwise 'False'.  This function must be provided by you and is custom
for your needs.This is abstracted from@aws-cdk/aws-eks/cluster.tswhere aCustom Resourcewhich makes anSSM Parameteris used as a barrier forResourcesto depend
on until theEKSCluster is ready forHelmto be run via anaddHelmChartUsageExample 1 - External Lambda# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826fromp6_barrierimportP6BarrierP6Barrier(self,"p6-barrier",name="some_useful_name",dependencies=[dep1,dep2],function_arn="functionArn")Example 2 - CDK Lambda (same stack)# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826fromp6_barrierimportP6Barrieris_ready=lambdajs.NodejsFunction(self,"isReady",timeout=Duration.minutes(15),tracing=lambda_.Tracing.ACTIVE)P6Barrier(self,"p6-barrier",name="some_useful_name",dependencies=[dep1,dep2],function_arn=is_ready.function_arn)ContributingHow to ContributeCode of ConductCode of ConductChangesChange LogAuthorsPhilip M. Golluccipgollucci@p6m7g8.com
Package: p6-namer
AWS CDK setups up a Custom Resource via Cloud Formation which sets the AWS IAM Account AliasP6NamerLICENSEOtherUsage...import{P6Namer}from'p6-cdk-namer';newP6Namer(this,'AccountAlias',{accountAlias:'THE-ALIAS',});ArchitectureAuthorPhilip M. Golluccipgollucci@p6m7g8.com
Package: p6-projen-project-awesome-list
Projen External Project to setup an Awesome Listp6-projen-project-awesome-listLICENSEOtherSummaryInitializes a repo for use as anawesome listReplacesyeomanUsageprojennew--fromp6-projen-project-awesome-listAuthorPhilip M. Golluccipgollucci@p6m7g8.com
Package: p7doi
p7doiis a tool forParis 7students who read research papers outside the
university. A lot of them are behind a paywall, which can be bypassed by using
the university’s proxy because it’s subscribed to a bunch of these websites.Note: you’ll need to login with your student credentials when asked to.Installpip install p7doiUsagep7doi <doi>It’ll open the article in your default web browser. Note that you might need to
put the DOI between quotes if it contains characters that could be interpreted
by your shell (e.g. parentheses).Examplep7doi 10.1126/science.298.5594.824TestsClone this repo, then:[sudo] make deps
make check
Package: p8
P8 - The Python ultimate meta linterWhy?To easily ensuring modern Python code quality in multiple projects.A new Python developer on Windows may not know:How to set PATHHow to invoke command installed via pip: e.g flake8How to install make and write MakefileHow to setup git precommitThis program helps ensuring code quality without above hassle, it runs commands
by default includes:blackflake8mypy- it not only work when type annotation exists, it can detect type by
itself for some cases, and detect error likeprint("%s %s", missing_one_arg).Installpip install p8Usagep8 initcreates a config filep8.inip8runs all commands defined inp8.ini, order matters.Installing those commands are users responsibility.On Windows, usepy -m p8 initandpy -m p8instead.TODOTest and fully support WindowsAdd option to install default suiteflake8 black mypyGenerate MakefileAuthorsViet Hung Nguyenhvn@familug.org
Package: p8hub
Private AI Hub (P8Hub)"Host and use your own AI Services. Keep everything simple and private."In an era where AI is transforming every aspect of our lives, I recognized the need for a private and easy-to-use platform where individuals and small teams could host and utilize their own AI services. The inspiration for P8Hub came from the desire to make AI technologies accessible and private, democratizing them for all.ArchitectureThe architecture of P8Hub consists of two main components: a FastAPI backend and a Next.js frontend. The backend and frontend communicate with each other via REST API. For ease of deployment, I build frontend into static files and serve them from the backend. The interaction with Docker (running, stopping, and monitoring services) is done viaPython on Whalespackage.FeaturesSome features are still in development. You can check the progress here.Monitor hardware resources.Service management (start, stop/delete).Service logs viewer.OllamaLLM- General chatbot service.Teachable AI- Teach the computer to classify images - STEAM.docTR- Document Text Recognition.Whishper- Text to speech service.TTS Generation(GPU Only)Docker extension.Image generation service.Add documentation.Add tests.App editor.The applications were not selected carefully due to limited time. I think many more interesting AI applications can be integrated into P8Hub. If you have any suggestions, pleaselet me knowor create a pull request.I. Installation and Usage1. InstallationPython 3.9 or higher.Installp8hub:pipinstallp8hub2. UsageRun the app:python-mp8hub.appor just:p8hubGo tohttp://localhost:5678/to see the user interface.You can also run Private AI Hub publicly to your network or change the port with parameters. Example:p8hub--host0.0.0.0--port80803. Docker Extension (Experimental)Docker Extension allows to extend the functionality of Docker Desktop. We've developed a Docker Extension for P8Hub. You can install it by running:makeinstall-extensionYou should see the extension in Docker Desktop's UI.Architecture:II. Development1. Clone the source codegitclonehttps://github.com/vietanhdev/p8hubcdp8hub2. Run your backendPython 3.9 or higher.To install from source, fromp8hubsource code directory, run:pipinstall-e.Run the app:python-mp8hub.appGo tohttp://localhost:5678/to see the user interface.2. Run your frontendInstall the dependencies:cdfrontend
npminstallRun the app:npmrundevGo tohttp://localhost:3000/to see the user interface. Use this address to develop the frontend.ReferencesNext Template:https://github.com/shadcn-ui/next-template.PAutoBot:https://github.com/nrl-ai/pautobot.This project was created for theDocker AI/ML Hackathon 2023.
Package: p9fs
p9fs9P implementation of Python fsspec.Supported protocols:9P20009P2000.u9P2000.LTested with the following servers:py9punpfsdiodExamplesimportp9fsfs=p9fs.P9FileSystem(host='127.0.0.1',port=564,username='nobody',version='9P2000.L',)print(fs.ls('.'))importfsspecwithfsspec.open('p9://nobody@127.0.0.1:564/folder/data.csv?version=9P2000.L')asf:data=f.read()TODOauthatime,mtime,ctimeThis package contains a fork of py9p (https://github.com/svinota/py9p), which seems no longer maintained.
Minimal support for 9P2000.L has been added to the client code.
Package: pa1010d
Pimoroni PA1010D GPS BreakoutPre-requisitesYou must enable:i2c:sudo raspi-config nonint do_i2c 0You can optionally runsudo raspi-configor the graphical Raspberry Pi Configuration UI to enable interfaces.InstallingStable library and dependencies from GitHub:git clone https://github.com/pimoroni/pa1010d-pythoncd pa1010d-pythonsudo ./install.shLatest/development library and dependencies from GitHub:git clone https://github.com/pimoroni/pa1010d-pythoncd pa1010d-pythonsudo ./install.sh --unstableStable (library only) from PyPi:Just runsudo pip3 install pa1010dChangelog0.0.4Fix read/write for Python 3.90.0.3Add support for geoidal separationAdd support for lat/long directionRequire Python >= 3.60.0.2Add support for disabling PPS LEDHandle spurious newlines in sentencesAdd PDOP, VDOP and HDOP outputHandle GLL messages0.0.1Initial Release
Package: paaaaath
About The ProjectThis project is motivated to provide a useful alternative Path object.Built WithpoetryGetting Started$pipinstallpaaaaath
$python-c"from paaaaath import Path; print(Path('https://raw.githubusercontent.com/ar90n/paaaaath/main/assets/python_logo.txt').read_text())"_.gj8888888lkoz.,_d888888888888888888888b,j88P""V88888888888888888888888888888888888888888888baed8888888888888888888888888888888888888888888888888888888888,ad8888888888888888888888888888888888888888be,d8888888888888888888888888888888888888888888888b,d888888888888888888888888888888888888888888888888b,j88888888888888888888888888888888888888888888888888p,
j888888888888888888888888888888888888888'  88888888888888888888888888888888888888888888888888^"   ,888888888888888888888888888^'.d888888888888888888888888888"   .a88888888888888888888888888888888888888888888888888  ,888888888888888888888888888888888888888^^888888888888  888888888888888888888888888888888888888^V88888888888  88888888888888888888888888888888888888YV8888888888  8888888888888888888888888888888888888Y`"^88888888888888888888888888888888888888888^"'8888888888888888888888888888888888888888888888888888888888P""V8888888888888888888888    8888888888888888888888baed88V`^888888888888888888888^`'"^^V888888888V^^'PrerequisitesIf you rune some codes in this repository, you have to install poetry as following.pipinstallpoetryInstallationpipinstallpaaaaathUsagefrompaaaaathimportPathOUTPUT_BUCKET=""# fill output bucket namedefmain():png_images=[]forpinPath("s3://elevation-tiles-prod/normal/10/963").iterdir():ifp.suffix!=".png":continuepng_images.append(p)if3<len(png_images):breakforinput_pathinpng_images:ifOUTPUT_BUCKET!="":output_path=Path(f"s3://{OUTPUT_BUCKET}/{input_path.name}")print(f"upload{output_path.name}to{output_path}")output_path.write_bytes(p.read_bytes())else:print(f"skip upload{input_path.name}")if__name__=="__main__":main()FeatuersHttpPathS3PathGCSPathopen✅✅✅read_text✅✅✅read_byte✅✅✅write_text❌✅✅write_byte❌✅✅iterdir❌✅✅touch❌✅✅mkdir❌✅✅exists❌✅✅RoadmapSee theopen issuesfor a list of proposed features (and known issues).ContributingContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make aregreatly appreciated.Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactMasahiro Wada -@ar90n-argon.argon.argon@gmail.comProject Link:https://github.com/ar90n/paaaaathAcknowledgementssmart-openPython Logo
Package: paas-service
Paas Service蓝鲸 PaaS 平台增强服务框架版本历史详见CHANGES.md。使用指南更新 settings：INSTALLED_APPS=[...'paas_service',...]MIDDLEWARE=[...'paas_service.auth.middleware.VerifiedClientMiddleware',...]# 数据库敏感字段加密 KeyBKKRILL_ENCRYPT_SECRET_KEY=base64.b64encode(b'\x01'*32)# 与 PaaS 平台通信的 JWT 信息PAAS_SERVICE_JWT_CLIENTS=[{"iss":"paas-v3","key":"123..........","algorithm":"HS256",},]# 增强服务供应商类PAAS_SERVICE_PROVIDER_CLS="svc_xxx.vendor.provider.Provider"# 增强服务实例信息渲染函数PAAS_SERVICE_SVC_INSTANCE_RENDER_FUNC="svc_xxx.vendor.render.render_instance_data"# 设置语言，注意：目前国际化只支持: 简体中文 和 EnglishLANGUAGE_CODE='zh-cn'LANGUAGES=[("zh-cn","简体中文"),("en","English")]单元测试首先，安装 pytest、pytest-django。然后执行make test运行所有单元测试。
Package: paaster
Paaster CLI: Encrypted Pastes from Your TerminalSupportLinux (Tested)Windows (Tested)MacOS (Not tested, please submit an issue if it works or not)Installationpip3 install paasterCommandspaaster --help: Shows available commands.paaster upload: Upload locally encrypted clipboard to the API.Options:-m, --mode TEXT: Specify the mode for the paste, choose from "clipboard", "file", or "inline". (default: clipboard)-ctc, --copy_to_clipboard BOOLEAN: Overwrite COPY_URL_TO_CLIPBOARD setting.-ob, --open_browser BOOLEAN: Overwrite OPEN_URL_IN_BROWSER setting.-eu, --echo_url BOOLEAN: Overwrite ECHO_URL setting.paaster set --name "" --value "": Set config parameters.ParametersAPI_URL: Backend URL, type: string.FRONTEND_URL: Frontend URL, type: string.COPY_URL_TO_CLIPBOARD: Copy URL to clipboard, type: "true/false".OPEN_URL_IN_BROWSER: Open paste in the browser, type: "true/false".ECHO_URL: Echo the paste URL in terminal, type: "true/false"
Package: paasword
Paas-Word Django Authentication MiddlewarePaas-Wordis an online authentication and user management service.
This Python Django middleware byPaas-Wordenables website owners with a Django backend to restrict their endpoints to authenticated users only and retrieve user data.UsageCreate a free account atPaas-Wordwebsite.Recieve a login, sign-up, account and forgot-password pages for your website based on the user attributes you set up.Set the callback pages on your website where users will be redirected after they sign-up and log in.Once a user is redirected to your website with a token, send this token to your backend in the "x-auth-token" header.InstallationRun:pip3 install paaswordAdd "paasword" to settings.py :INSTALLED_APPS = [
        ...
        'paasword',
    ]Set Private Key as Environment VariableCreate an app onPaas-Wordand then set its Private Key as an environment variable on your server.export PAASWORD_APP_PRIVATE_KEY=93f56f52-957d-4953-93a6-c5492e79778bGaurd all endpointsAdd middleware to settings.py :MIDDLEWARE = [
        ...
        'paasword.middleware.Authenticate',
    ]Gaurd spesific routes against unauthenticated usersRemove comment from middleware.py. As an example:if request.path.startswith('/snippets/'):
    return self.get_response(request)Retrieve user informationCall request.userdef snippet_list(request):
	if request.method == 'GET':
		print (request.user)
		snippets = Snippet.getAll()
		return JsonResponse(snippets, safe=False)
Package: paayes
A Python library for Paayes’s API.SetupYou can install this package by using the pip tool and installing:$ pip install paayesOr:$ easy_install paayesSetting up a Paayes AccountSign up for Paayes athttps://dashboard.paayes.com/register.Using the Paayes APIDocumentation for the python bindings can be found alongside Paayes’s other bindings here:https://docs.paayes.com/docs/https://docs.paayes.com/api/pythonIn the standard documentation (the first link), most of the reference pages will have examples in Paayes’s official bindings (including Python). Just click on the Python tab to get the relevant documentation.In the full API reference for python (the second link), the right half of the page will provide example requests and responses for various API calls.
Package: pab
PBTpbt— a build tool for multi-packages that leverages package registries (pypi, npmjs, etc.).IntroductionHaving all packages in the same repository make it much easier to develop, share, reuse, and refactor code. Building and publishing the packages should not be done manually because it is time-consuming and may be frustrated if the projects are depending on each other.pbtis a tool designed to help make the process easier and faster. It supports building, installing, and updating versions of your packages and their dependencies consistently. It also provides utility commands to help you work with your packages in multi-repositories as if you are working with a monorepo.Installationpipinstall-Upab# not pbtUsageNote: currently,pbtsupports Python packages configured with Poetry (an awesome dependency management that you should consider using).Assuming that you organized your packages to different sub-folders, each has their own project configuration file (e.g.,pyproject.toml). You can run the following commands in the root directory (containing your projects). Note:pbtwill discover the project based on the project name in its configuration file not the folder name.You can also discover the list of commands by runningpbt --help. Many commands have an option--cwdto override the current working directory.List all packages in the current project, and their dependencies if requiredpbtlist[-d]-d,--dev: Whether to print to the local (inter-) dependenciesCreate virtual environment of a package and install its dependenciespbtinstall[-d][-v][-p<package>]-d: also install dev-dependencies of the package-v: verbose-p: specify the package we want to build, if empty build all packages.If you have encounter some errors during the installation, you can checkout thepyproject.failed.tomlfile that is generated by pbt in./cache/<package>folder (relative to your current working directory). For example, on M1 chip, if your python version is^3.8, you can't use the newer scipy (e.g., >1.8 as it requires python<3.11), poetry lock chooses to use an old version1.6.0, which typically can't build on M1 due to no pre-built numpy for it.Update all package inter-dependenciespbtupdateClean packages' build & lock filespbtclean[-p<package>]-p: specify the package we want to build, if empty build all packages.Git clone a multi-repository projectpbtgitclone--repo<repo_url>Clone a repository and check out all of its submodules to their correct branches that we were using last time.Git update a multi-repository projectpbtgitupdatePull latest changes from the repository, and check out all of its submodules to their correct branches.