Saravanan666/pypi-org huggingface dataset:
Package: pic-rucio
Pic rucio clientGetting startedTo make it easy for you to get started with GitLab, here's a list of recommended next steps.Already a pro? Just edit this README.md and make it your own. Want to make it easy?Use the template at the bottom!Add your filesCreateoruploadfilesAdd files using the command lineor push an existing Git repository with the following command:cd existing_repo
git remote add origin https://gitlab.pic.es/rucio/rucio-client.git
git branch -M main
git push -uf origin mainPIC-rucio-clientBelow is a couple of scripts that facilitate other tests to interact with Rucio's server. In each one of them, the amount and scope corresponding to the person are owed (and in the case that the RSEs are desired, although it is not necessary) First of all, here is a script to do simple uploads of randoms files. Then, Replication of those files in the deterministic RSE. Seepre-commitfor instructions.gitlab-cigitlab-civalidates you.gitlab-ci.ymlfile from command-line, before you have commited wrong CI configuration to your repository!Just ashttps://docs.gitlab.com/ee/ci/lint.htmldoes, but you don't have to open browser every time.The better way to use it - use as pre-commit hooks.How to package this scriptsSee thisguidefor more instructions
Package: picrypt
picrypt'picrypt' is a simple cryptographer.Installpip install picryptExampleimportpicrypttoken="banana"# you can use picrypt.generate_token() to generate a random tokenencryptor=picrypt.Encryptor(token)encrypted=encryptor.encrypt("hello world")decrypted=encryptor.decrypt(encrypted)print("Encrypted:",encrypted)print("Encrypted:",decrypted)Result:Encrypted:  [63336, 61509, 65772, 65772, 67599, 19488, 72471, 67599, 69426, 65772, 60900]
Decrypted:  hello worldUse the token to encrypt and decrypt.
Package: picsellia
Picsellia SDKPicsellia Python SDK is a python library that allows connecting to Picsellia platform.DocumentationReference of the SDK can be found atreferenceGetting startedDocumentation can be found atdocs.
Start by installing the Picsellia python package in your environment.pip install picselliaThen, initialize a clientfrompicselliaimportClientclient=Client(api_token=<yourapitoken>)Now, use it to upload data and create a dataset !lake=client.get_datalake()uploaded_data=lake.upload_data(filepaths=["pics/twingo.png","pics/ferrari.png"],tags=["tag_car"])dataset=client.create_dataset("cars").create_version("first")dataset.add_data(uploaded_data)What is Picsellia ?Our mission is to give you all the necessary tools to relieve the burden of AI projects off of your shoulders. As a data scientist / ML engineer / Researcher, you shouldn't have to worry about the following topics :💾 Data Management📈 Experiment Tracking📘 Model Management🚀 Model Deployment👀 Model MonitoringPicsellia is the one-stop place for all the life-cycle of your Computer Vision projects, from ideation to production in a single platform 🚀.
Package: picsellia-activity-stream
Django Activity StreamWhat is Django Activity Stream?Django Activity Stream is a way of creating activities generated by the actions on your site.It is designed for generating and displaying streams of interesting actions and can handle following and unfollowing of different activity sources.
For example, it could be used to emulate the Github dashboard in which a user sees changes to projects they are watching and the actions of users they are following.Action events are categorized by four main components.Actor. The object that performed the activity.Verb. The verb phrase that identifies the action of the activity.Action Object.(Optional)The object linked to the action itself.Target.(Optional)The object to which the activity was performed.Actor,Action ObjectandTargetareGenericForeignKeysto any arbitrary Django object and so can represent any Django model in your project.
An action is a description of an action that was performed (Verb) at some instant in time by someActoron some optionalTargetthat results in anAction Objectgetting created/updated/deleted.For example:justquick(actor)closed(verb)issue 2(object)ondjango-activity-stream(target)12 hours agoNomenclature of this specification is based on the Activity Streams Spec:http://activitystrea.ms/For complete documentation seeDjango Activity Stream DocumentationContributorsThis project exists thanks to all the people who contribute!SponsorsGet supported django-activity-stream with the Tidelift Subscription
Package: picsellia-collectstatic
picsellia-s3manifestcollectstaticThis is a fork ofhttps://github.com/dduong42/s3manifestcollectstaticOptimized collectstatic for S3ManifestStaticStorage.
With max_workers parameters and custom handler of exception while uploading filesInstallationInstall the packagepip install picsellia-s3manifestcollectstaticAddpicsellias3manifestcollectstatictoINSTALLED_APPSDescriptioncollectstaticcan take a long time. When used withstorages.backends.s3boto3.S3ManifestStaticStorage,collectstaticuploads
the files twice, once without the hash at the end of the file name, and once
with the hash.  Also, it doesn't use multiple threads to upload to s3.s3manifestcollectstaticuploads the files only once, uses threads to speed
things up, and doesn't upload the files that are already on S3.collectstatic: (Around 20 minutes)$ time ./manage.py collectstatic --noinput

604 static files copied, 646 post-processed.
./manage.py collectstatic --noinput  29,94s user 2,27s system 2% cpu 20:25,06 totals3manifestcollectstatic: (Around 30 seconds)$ time ./manage.py s3manifestcollectstatic

604 static files copied to '/tmp/tmpbw0q_5lq', 646 post-processed.
Start the upload of 604 files
Uploading the manifest
./manage.py s3manifestcollectstatic  10,95s user 1,92s system 49% cpu 26,269 totalIf you want to reupload the files use-f:./manage.py s3manifestcollectstatic -fTested with Python 3.9, Django 3.2, django-storages 1.11
Package: picsellia-connexion-services
Picsellia ServicesPicsellia Services is a Python library that wraps connexions with Picsellia micro services.InstallationUse the package managerpipto install picsellia-connexion-services.pipinstallpicsellia-connexion-servicesUsageJwtTokenfrompicsellia_connexion_services.jwt_serviceimportJwtServiceConnexionservice=JwtServiceConnexion({'api_token':'<api_token>','deployment_id':'<deployment_id>'},'localhost:8000')service.get(f'/deployment/{deployment_id}/stats')Usage in mocked testsfrompicsellia_connexion_services.mocked_serviceimportMockedServiceConnexionservice=MockedServiceConnexion('test')service.set_next_mocked_response("get","/ping",JsonResponse({"ok":True},status=status.HTTP_200_OK))service.get("/ping")ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: picsellia-elasticsearch-client
Picsellia Elasticsearch ClientPicsellia Elasticsearch Client is a Python library that wraps Elasticsearch Python Client in order to push Picsellia metrics.InstallationUse the package managerpipto install foobar.pipinstallpicsellia-elasticsearch-clientUsagefrompicsellia_elasticsearch_client.clientimportPicselliaELKClientclient=PicselliaELKClient(host="localhost",port=443)metric=PicselliaMetric(service="service",data={"hello":"world"})client.push(metric)error=PicselliaError(service="service",exception=KeyError('key'))client.push(error)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: picsexl
picsexlConverter from ics format to xlsInstallationpipinstallpicsexlExamplefromdatetimeimportdatetime,timezonefrompicsexlimportPIcsExlp=PIcsExl(file_path="/path/to/your/file.ics",mail_to="some.email@gmail.com",start_date=datetime(2022,10,1,0,0,0,tzinfo=timezone.utc),end_date=datetime(2022,10,30,23,59,59,tzinfo=timezone.utc),to_timezone="America/Los_Angeles",)p.run_sniff_and_write_ics_lines()
Package: picsh
picshParallel Interactive Cluster Shell, for rapid ad-hoc cluster ops.RequirementsTested on Linux only (Fedora 35, Amazon Linux 2, Ubuntu 18)Tested with Python 3.6 and upInstall$pip install picshFeaturesFast interactive shells (re-uses the ssh session)Stateful (cd /var/log followed by pwd gives you /var/log)Target a subset of nodes (@2,3,4 mkdir /etc/newconfd)Ssh to a single node to run full screen curses apps like topBrowse receive buffers per nodeKeyboard and mouse drivenWorks over ssh so you can put this on a jump hostDemoUsageUsing the command line args:$picsh -i /home/bob/.keys/slurm_host_key -l ec2-user -h 10.1.0.23 10.1.0.24 10.1.0.25Using static cluster configs:Create a cluster yaml and put it in ~.picsh/cluster_name.yaml.Example:$ cat .picsh/slurm-dev.yamlcluster_name: slurm-dev
login_user: ec2-user
ssh_key_path: /home/ec2-user/.keys/pcluster.pem
nodes:
  - ip: "10.0.27.155"
  - ip: "10.0.25.13"
  - ip: "10.0.23.208"
  - ip: "10.0.31.113"
  - ip: "10.0.18.254"then run$picshTo get a debug log in ~/.picsh , pass -v on the command line
Package: picsi
picsiNexmon CSI utilities for Raspberry PiIn development • Not ready for testing yet.Features⚡Superfastinstalls with pre-compiled binaries⌛ Compiles from source when binaries are not available🚀 Easy Start/Stop CSI collection withpicsi uporpicsi down✨ Restore original firmware and connect to WiFi withpicsi disable💾 Saves CSI to .pcap files📡 Forward CSI packets to other devices for faster collection📁 Manage your CSI collection configuration with ProfilesInstallOn a Raspberry Pi 3B+ or 4B, run:sudoaptinstallpython3-pip# install pip for python3pip3installpicsi# install picsisource~/.profile# update $PATHpicsiinstall# install nexmon_csipicsiwill download the appropriate firmware and binaries for
your system and install them, or compile from source if they
are not available pre-compiled.Usagepicsienable# enable nexmon_csipicsiup# Collect CSI on 36/80This enables Nexmon_csi, and starts CSI collection on channel 36 with
bandwidth 80 MHz. You can see the traffic withtcpdump -i wlan0 dst port 5500.More examples:picsi up 149/80               # Collect CSI on 149/80

picsi down                    # Stop CSI collection
picsi disable                 # Restore original WiFi

picsi status                  # See status

picsi --help                  # See the help pageDocsPicsi (pronounced pixie?) is a Python tool to install Nexmon CSI on Raspberry Pis.
It needs Python version>= 3.7, although using the latest version is recommended.The best features of picsi, in my opinion, are:Installing Nexmon CSI from pre-compiled binaries.Compiling Nexmon_CSI on the Pi takes about an hour, and downloads about 1.5 GB of data.
And it needs your attention for the entire duration because you need to reboot the Pi
multiple times, and keep a look out for errors.Picsi downloads appropriate pre-compiled nexmon_csi firmware and binaries (nexutil, makecsiparams)
for your kernel fromhttps://github.com/nexmonster/nexcsi-bin.git(repository not available yet),
and installs them. If binaries are not available, it installs from source, including automatic
unattended reboots, and logs errors and progress.Forwards CSI packets to an IPPicsi can forward CSI packets to a different computer on your network, which is potentially
faster than the Pi, and can collect more packets than tcpdump on the Pi can.But additionally, an app on your phone/laptop can listen to the packets,
and plot the CSI in realtime or process it.Profiles!Manage your csi collection configuration in profiles!write[profiles.CustomProfileName]channel=36bandwidth=80coremask=1ssmask=1forward=falseforward_ip='192.168.1.25'duration=30macids=['ab:cd:ef:12:34']in profiles.toml, and you can start csi collection withpicsi up CustomProfileName.This collects CSI on channel 36, bandwidth 80 from macids for 30 seconds,
and forwards that CSI to 192.168.1.25. After 30 seconds, CSI collection is stopped
and original wifi firmware is restored.You can also create a set of profiles, and make picsi loop CSI collection over them.Only basic CSI collection via profiles will be added first, and other profile features will
be added later.
Package: picsign
picSigna module to sign your image by encoding a text or a file in it.
can use as a python module or a command line tool.modulefrompicsign.pic_signimportwrite_image,read_imagewrite_image(image,input,output_name,input_is_file)read_image(image)runningSign Picture:
    sign your image by encoding a text in pixels of the image

Usage:
    picSign (-w | --write) <image> <input> [-f -o OUT]
    picSign (-r | --read) <image>
    picSign (-h | --help)
    picSign --version

Options:
    -w --write              use the program in write mode
    -r --read               use the program in read mode
    -h --help               show this help message and exit
    -f --file               encode a file in the image
    -o OUT --output OUT     output the image to a file [default: out]
Examples:
    picSign -w image.png "Hello World"
    picSign -r image.pngbuildingfor building standalone one file executablenuitka --standalone --onefile .\src\picSign\main.pyseenuitkadocs for more infos.
Package: picswaifu
Python Waifu Pics API ClientWaifuPics is a Python client for the Waifu Pics API, providing a simple and convenient way to retrieve SFW and NSFW images of various categories.InstallationYou can install WaifuPics using pip:pipinstallpicswaifuUsagefrompicswaifuimportWaifu,ApiTypes,SFWCats,NSFWCats# Create an instance of WaifuPicswaifu_client=Waifu()# Get a single SFW image URLsfw_url=awaitwaifu_client.get()print(f"SFW Image URL:{sfw_url}")# Get multiple SFW images URLs as a listsfw_urls=awaitwaifu_client.get_sfw(category=SFWCats.NEKO,multi=True)forurlinsfw_urls:print(f"SFW Image URL:{url}")ErrorsInvalidResponse: Raised when the API returns an invalid response.InvalidInput: Raised when the client is not configured properly.# Notes
This package uses the Waifu Pics API. Make sure to review and comply with the API's terms of service.ContributingFeel free to contribute by opening issues or submitting pull requests on the GitHub repository.# License
This project is licensed under the GPLv3 License - see the LICENSE file for details.
Package: picterra
Picterra Python API ClientEasily integrate state-of-the-art machine learning models in your appfrompicterraimportAPIClient# Replace this with the id of one of your detectorsdetector_id='d552605b-6972-4a68-8d51-91e6cb531c24'# Set the PICTERRA_API_KEY environment variable to define your API keyclient=APIClient()print('Uploading raster...')raster_id=client.upload_raster('data/raster1.tif',name='a nice raster')print('Upload finished, starting detector...')result_id=client.run_detector(detector_id,raster_id)client.download_result_to_feature_collection(result_id,'result.geojson')print('Detection finished, results are in result.geojson')Installationpip install git+https://github.com/Picterra/picterra-python.gitSee theexamplesfolder for examples.API Reference and User Guide available onRead the DocsDevelopmentIn order to test locally, run:pythonsetup.pytest
Package: pictl
pictlA command line tool for Image Compression and Upload (ex. S3-type)Engligh |中文简体Why a new projectWhen I publish blog articles, it's quite inefficient for me to prepare images.Although there exist many good enough tools, likeuPic,PicGo, and so on, they still cannot meet my need completely.For me, these points are very necessary:All images should be compressed and transformed intowebpformat (less storage and loading time).All images can be uploaded to S3-like object storage with a unique short name.It should be very easy to use. It‘s better if no web UI or GUI. Command line first.(Optional) The customized watermark can be added into all images automatically.(Optional) All images can be resized into the defined default size automatically.(Optional) It defaults to read the image from the clipboard.Actually uPic and PicGo can provide most of the above functions, but not so good in some points.They don't provide the transformation towebpformat.They don't provide the support for Cloudflare R2 (though uPic paid version in appstore provides it).It's quite time-consuming for me to write a plugin for PicGo or rewrite codes for uPic.So why not write a new tool?The project nameBecause it's designed for image helper in writing blog articles and using only with command line,
it's named PICTL, a short name forPictureControl.The architectureHere is the architecture of this project.It seems very similar to PicGo 😂, but it will be different.InstallationFrom sourcegitclonehttps://github.com/zhonger/pictlcdpictl
pip3install.PIPpip3installpictlBrew(PS: It will support in the next version.Now it's supported in MacOS. Linux is not available yet.)brewtapzhonger/pictl
brewinstallpictlUsageConfigThe config file for PICTL is named.pictlrcwithtomlformat. The config file is located at~/.pictlrc.Until now PICTL supports:Nametypein configCloudflare R2R2AWS S3S3Tencent COSCOS(Tencent)Manually[basic]length=6ntype="random"algorithm="sha1"[blog]type="S3"endpoint="https://s3.ap-northeast-1.amazonaws.com"bucket="blog"region="ap-northeast-1"prefix="blog"key="this-is-a-long-key-for-s3"secret="this-is-a-long-secret-for-s3"url="https://i.lisz.me"Interactive way╰─$pictlconfig
Usage:pictlconfig[OPTIONS]COMMAND[ARGS]...Operationsfortheconfigfile`~/.pictlrc`.

Options:-h,--helpShowthismessageandexit.

Commands:addAddconfigstotheconfigfile.deleteDeleteconfiggroupfromtheconfigfile.infoChecktheconfigs.initInitializeconfigfilewithdefaultconfigs
Package: picto
PictoTake bookmarks.json, a URL list (newline delimited), or a single URL - convert those to screenshots.Setuppython3-mpipinstallpicto
playwrightinstall--with-depschromiumCLISave a URL as an image - optionally embed a HAR archive of the site.Usage:$picto[OPTIONS]COMMAND[ARGS]...Options:--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Commands:snapshotsnapshotUsage:$pictosnapshot[OPTIONS]COMMAND[ARGS]...Options:--help: Show this message and exit.Commands:extract: Take a picto snapshot and extract embedded...take: Take a snapshot of the provided URL -...snapshot extractTake a picto snapshot and extract embedded assetsUsage:$pictosnapshotextract[OPTIONS]Options:--filepath FILE: The path to a picto snapshot  [required]--help: Show this message and exit.snapshot takeTake a snapshot of the provided URL -
optionally including a HAR file either as a standalone or
embedded in the returned image as EXIF data.Usage:$pictosnapshottake[OPTIONS]Options:--filepath FILE: The path to a bookmarks.json file as exported from a browser or a newline delimited text file of URLs--url TEXT: The URL of a website you wish to take a snapshot of--out PATH: The output directory to store results in  [default: /tmp/picto]--include-har / --no-include-har: Capture and save a HAR file when taking the screenshot  [default: no-include-har]--include-pdf / --no-include-pdf: Capture and save a PDF file when taking the screenshot  [default: no-include-pdf]--embed-har / --no-embed-har: If true, enables include_har - save HAR in the screenshots EXIF data  [default: no-embed-har]--max-processes INTEGER: The number of processes to spawn which will consume the bookmarks.json entries in parallel  [default: 5]--timeout FLOAT: Wait at most this many seconds for a page to load  [default: 15.0]--no-progress / --no-no-progress: Disable progress bar and just print the filepaths  [default: no-no-progress]--help: Show this message and exit.
Package: pictone
PicTonePicTone is a simple, fun Python CLI tool that converts images into vectorscope audios. It supports tweaking multiple parameters and sampling sequences of images.InstallationTo install PicTone, use pip:pipinstallpictoneYou'll need Python 3.6 or higher.UsagePicTone is a command-line tool that converts the images into WAV files using a sampler with edge detection.
You can tweak its parameters and the way the images are passed to it.Command LineThe basic command structure for using PicTone is as follows:pictone-iinput_path-ooutput_path[options]Input can be either an image or a folder with an ordered sequence of them.In addition to the required input and output paths, there are some optional arguments to shape the result:-r--rate: Sample rate for the output audio. Default is 44100 Hz.-d--depth: Bit depth for audio samples. Can be 8, 16, or 24. Default is 16.-s--samples: Number of samples the inputs should be forced to last. By default, they'll last the minimum. This is useful if you are converting a sequence (e.g. Forcing to 735 with a rate of 44100 would achieve a ~60 fps visualization).-a--aspect: Boolean value to decide whether to preserve the input aspect ratio. Defaults toTrue.As a LibraryIf you want to experiment, the sampler can be instantiated and configured by yourself. Although it just outputs a single input raw data:importcv2frompictone.samplerimportEdgeSamplerimage=cv2.imread("image.png",0)image_edges=cv2.Canny(image,100,200)edge_threshold=0byte_depth=2sampler=EdgeSampler(edge_threshold,byte_depth)# Basic paramssampled_data=sampler.sample_frames(image_edges)
Package: pictool
pictoolis a command line program for manipulating and altering images.InstallationFor runningpictool,opencvandgexiv2need to be installed. Usually, both
are included in different distributions (likeopenSUSEorDebian) and can
be installed via the available package manager (likezypperorapt).When the requirements are installed, you can installpictoolviapip:pip install pictool
Package: pictools
AboutPIC toolsis a collection of tools to ease PIC software
development. PIC is family of microcontrollers made byMicrochip.Features:A PIC programmer based on anArduino Due. Today only thePIC32MM0256GPM064family is supported.Project homepage:https://github.com/eerimoq/pictoolsDocumentation:http://pictools.readthedocs.org/en/latest
Package: pictorus
Pictorus Device Manager (Beta)Python library for managing devices connected to aPictorus BetaaccountInstallationsudo pip3 install pictorusNote: The package is installed/run usingsudoso it can create and manage the required systemd services on your machine. You can install/run withoutsudo. This will still let you register your device, but you may need to manually configurepictorus-device-managerto run using your preferred process manager.UsageRunsudo pictorus-cli --helpto see available commandsConfiguresudo pictorus-cli configureThis allows you to register the current device with your pictorus account, and sets uppictorus-device-managerto run as a systemd process.
Package: pictory
pictorySimple tool to organize pictures and videos in lickable directoriesInstallationSimply usepippip install pictoryorpipenvpipenv install pictoryUsagepython pictory.py <path>End resultfrom20130907_200910.jpg
20131102_231549.jpg
VID_20180106_230942390.mp4
VID_20180202_211303150.mp4
20130629_005059.jpg
20131022_155432_9.jpg
20131027_242914.jpg
VID_20150328_165952.mp4
VID_20150328_170016.mp4
VID_20150329_130832.mp4to├───images
│   └───2013
│       ├───June
│       │       20130629_005059.jpg
│       │
│       ├───November
│       │       20131102_231549.jpg
│       │
│       ├───October
│       │       20131022_155432_9.jpg
│       │       20131027_242914.jpg
│       │
│       └───September
│               20130907_200910.jpg
│
└───videos
    ├───2015
    │   └───March
    │           VID_20150328_165952.mp4
    │           VID_20150328_170016.mp4
    │           VID_20150329_130832.mp4
    │
    └───2018
        ├───February
        │       VID_20180202_211303150.mp4
        │
        └───January
                VID_20180106_230942390.mp4