Saravanan666/pypi-org huggingface dataset:
Package: pydot-ng
Ero Carrera (c) 2004-2007ero@dkbza.orgThis code is distributed under the MIT license.Requirements:pyparsing: pydot requires the pyparsing module in order to beable to load DOT files.GraphViz:  is needed in order to render the graphs into any ofthe plethora of output formats supported.Installation:Should suffice with doing:python setup.py installNeedless to say, no installation is needed just to use the module. A mere:import pydot_ngshould do it, provided that the directory containing the modules is on Python
module search path.This library is API compatible with original pydot so you can use it like this:import pydot_ng as pydot
Package: pydotplus
AboutPyDotPlus is an improved version of the old pydot project that provides a
Python Interface to Graphviz’s Dot language.http://pydotplus.readthedocs.org/Differences with pydot:Compatible with PyParsing 2.0+.Python 2.7 - Python 3 compatible.Well documented.CI Tested.Installationpip install pydotplusDevelopmenthttps://github.com/carlos-jenkins/pydotplusRun code QA:pip install tox
toxDocumentationUser guide and API Reference can be found in:http://pydotplus.readthedocs.org/To build it from source execute:pip install sphinx sphinx_rtd_theme
cd doc/
make htmlRequirementspyparsing: pydot requires the pyparsing module in order to be able to
load DOT files.GraphViz: is needed in order to render the graphs into any of the
plethora of output formats supported.LicenseThis code is distributed under the MIT license. See LICENSE for details.
Package: pydotswitcher
Switch your dotfiles on demand!PyDotSwitcher is a Python utility that allows you to easily switch between your dotfiles.Features📋Declarable: PDS will only change between dotfiles YOU declare.📁Grouped: Make a group to change multiple configurations at the same time. Especially useful for changing colorschemes!🛟Safe: PDS Backs up files before it switches them, and changes to the dotfiles are linked with your current configuration group.📜Scriptable: You can also embed shell scripts for doing stuff when changing themes.Installation:Install using PIP:pip install pydotswitcheror 'python -m pip install pydotswitcher'For Arch Linux users, install thepython-pydotswitcherpackageUsageOut of the box, PDS won't do anything. That is because you have to declare what files you want.But first, a configuration group is needed:$ dotswitch -n MyConfig # Creates the MyConfig Group if it doesn't existNow, let's add a file to our new group with the -a (Append) flag. For example, let's add our GTK settings:$ dotswitch -a ~/.config/gtk-3.0/settings.ini MyConfigGroups act as separate Home directories, so, running this command will create a./.config/gtk-3.0directory to store thesettings.inifile inside theMyConfiggroup (Which, by default resides in ~/.config/pydotswitcher/groups/).Now, to switch up our files, run:$ dotswitch -sw [group]This will apply all the configurations inside the group and will backup the existing configuration inside~/.config/pydotswitcher/, however, if you want to disable this, add the--no-backupflag.For scripting, run$ dotswitch -sh [group]. This will auto generate a.shfile for you to do scripting, and it will be executed when you switch up the files. If you have added a script to a group but don't want to execute it, append--no-script.Tips & TricksSome applications require a restart after having an updated. To fix this, create a script in your group and addkillall program-name && program-name &to your script.
Package: pydotted
PyDottedA very simple low code footprint dictionary with dot notation attribute (x.y) access, including nested dicts.Installation:From git:pipinstallgit+https://github.com/aredden/pydotted.gitFrom pypi:pipinstallpydottedExamples & Usage:frompydottedimportpydotd=pydot({"a":1})print(d.a)# prints 1d.b=d.a+4print(d.b)# prints 5d.c={"b":object(),"a":123}print(d)# prints {'a': 1, 'b': 5, 'c': {'b': <object object at 0x...>, 'a': 123}}print(d.c.a)# prints 123d.a={"e":{"f":{"h":{"i":"j"}}}}print(d.a.e.f.h.i)# prints "j"# Still supports normal dictionary property accessd["j"]=20print(d.j)# prints 20d.a.e.f.h.i=[{"a":{"b":"c"}}]# Supports nested lists within dictionaries within lists, (etc...) :)print(d.a.e.f.h.i[0].a.b)# prints "c"# Supports deeply nested listsd.b=[[[[[{"a":{"b":1}}]]]]]print(d.b[0][0][0][0][0].a.b)# prints 1Updates as of 1/8/22New Method:todict()Returns a non-pydot dictionary containing the converted object and nested objects.
Package: pydottie
PyDottiePyDottie is a version ofDottie.jswritten in Python 3.Table of Contents.DescriptionInstallationBasic UsageGet ValueSet ValueTransformTransform with custom delimiterGet paths in dictionaryTestsCreditsLicenseDescriptionPyDottie helps you to play with nested keys in dictionaries.Installation$pipinstallpydottieor$pip3installpydottieBasic UsageGetGets nested value, or None if unreachable, or a default value if passed.# PyDottieimportpydottievalues={'some':{'nested':{'key':'foobar',}},'some.dot.included':{'key':'barfoo'}}# returns 'foobar'print(pydottie.get(values,'some.nested.key'))# returns Noneprint(pydottie.get(values,'some.undefined.key'))# returns 'defaultval'print(pydottie.get(values,'some.undefined.key','defaultval'))# returns 'barfoo'print(pydottie.get(values,['some.dot.included','key']))Set valueSets nested value, creates nested structure if needed.# PyDottieimportpydottievalues={'some':{'nested':{'key':'foobar',}},'some.dot.included':{'key':'barfoo'}}pydottie.set_value(values,'some.nested.value','someValue')pydottie.set_value(values,['some.dot.included','value'],'someValue')# force overwrite defined non-object keys into objects if neededpydottie.set_value(values,'some.nested.object','someValue',force=True)Transform objectTransform dictionary from keys with dottie notation to nested objects.# PyDottieimportpydottievalues={'user.name':'Gummy Bear','user.email':'gummybear@candymountain.com','user.professional.title':'King','user.professional.employer':'Candy Mountain'};transformed=pydottie.transform(values);print(transformed);"""{'user': {'name': 'Gummy Bear','email': 'gummybear@candymountain.com','professional': {'title': 'King','employer': 'Candy Mountain'}}}"""With a custom delimiter# PyDottieimportpydottievalues={'user_name':'Mick Hansen','user_email':'maker@mhansen.io'}transformed=pydottie.transform(values,delimiter='_');print(transformed);"""{'user': {'name': 'Mick Hansen','email': 'maker@mhansen.io'}}"""Get paths in dictionary# PyDottieimportpydottievalues={'a':1,'b':{'c':2,'d':{'e':3}}}# ['a', 'b.c', 'b.d.e'];print(pydottie.paths(values))TestsRun the unit tests with the next command.python3-munittestCreditsCheckout the original source code of dottie.js athttps://github.com/mickhansen/dottie.jsLICENSEMIT
Package: pydotz
AboutThis is fork of original pydot (https://github.com/pydot/pydot) project which unfortunately has gone dead since late 2018. This fork simply merges all open PRs. The original pydot doesn't work on Windows 10 anymore with Python 3.7+. One of this PR solves this issue as well.pydot:is an interface toGraphvizcan parse and dump into theDOT languageused by GraphViz,is written in pure Python,andnetworkxcan convert its graphs topydot.
Development occurs atGitHub(under branchdev),
where you can report issues and contribute code.InstallationFromPyPIusingpip:pip install git+https://github.com/sytelus/pydot@v1.5.0#egg=pydotFrom source:pip install -e .Note: If you had installed original pydot then first uninstall it usingpip uninstall pydot.Dependenciespyparsing: used only forloadingDOT files,
installed automatically duringpydotinstallation.GraphViz: used to render graphs as PDF, PNG, SVG, etc.
Should be installed separately, using your system'spackage manager, something similar (e.g.,MacPorts),
or fromits sourceor seeofficial binary downloads.LicenseDistributed under anMIT license.
Package: pydouble
DescriptionPydouble lets you search for duplicates on a local disk or on a network share. Duplicates are moved to a folder selected.Pydouble can hash files md5 or sha1, identify duplicates and delete files based on their extension.If only the source folder is selected, the program hash files only.If the source folder and file duplicates are selected, the hash program and identifies duplicates. It moves duplicates in the selected folder.If the source folder, the duplicates and remove extensions are selected then the hash program, identifies and removes duplicate files. Deleted files are permanently deleted.Extensions must be in this form (separated by a space) in the field:jpg txt db gif tgaInstallationWindowsYou must install Python 2.7 and PySide 1.2.2 for Windows.You can download packages at [http://www.lfd.uci.edu/~gohlke/pythonlibs/](http://www.lfd.uci.edu/~gohlke/pythonlibs/)[Download egg file on pypi](https://pypi.python.org/pypi/pydouble)And installpython setup.py installOrpip install -U pydoubleFinally you can download binary distribution [Exe (9MB)](http://shoota.org/pydouble/pydouble-1.4.zip).LinuxInstall source (quickly method)sudo apt-get install python-pyside
git clonehttps://github.com/jhautefeuille/pydoublecd pydouble
sudo python setup.py installInstall with pip (if PySide is not installed, it will be compiled and installed, require more time)sudo pip install -U pydouble
Package: pydouyu
pydouyu斗鱼TV三方API、弹幕接口实现Note目前新的弹幕服务器域名切换到了danmuproxy.douyu.com--2022.12.08斗鱼官方提供的“openbarrage.douyutv.com”已经不维护，见issue#1，现在需要手动指定弹幕服务器ip来保持正常运行 --2020.07.08Feature官方已公布的斗鱼三方API完整实现自动重连稳定、无（少）数据遗漏Installpip3 install pydouyuExamplefrompydouyu.clientimportClientimporttimeimportsysdefchatmsg_handler(msg):output=time.strftime("[%Y-%m-%d%H:%M:%S] ",time.localtime())+msg['nn']+": "+msg['txt']print(output)sys.stdout.flush()defuenter_handler(msg):output=time.strftime("[%Y-%m-%d%H:%M:%S] ",time.localtime())+msg['nn']+" 进入了直播间"print(output)sys.stdout.flush()c=Client(room_id=562590)c.add_handler('chatmsg',chatmsg_handler)c.add_handler('uenter',uenter_handler)c.start()Usage运行 Demogit clone https://github.com/Kexiii/pydouyu.gitcd pydouyupython3 example.py二次开发示例代码见example.py用户可以自定义handler函数，并且调用Client.add_handler注册Client.add_handler传入的第一个参数为消息类型，有哪些消息类型见下文弹幕协议msg是一个dict，其的各字段见下文中的弹幕协议弹幕协议
Package: pydouz
# The Douz Programming Language![img](./res/douz.jpg)# Installation` $ apt install-yllvm        # Install LLVM $ pip3 install pydouz        # Install Front End of Douz `# PlayPydouz is a compiled language, but it comes with a JIT interpreter at the same time, so you can “run” source code directly:` $ pydouz run ./examples/fib.dz Exit: 89 `Or you can compile it to a executable output:` $ pydouz build ./examples/fib.dz-o/tmp/fib `# LicencesWTFPL
Package: pydown
Pydown is a library for downloading files from the Internet. It also includes a simple textual interface. Install it using your preferred method of getting Python packages and then open the interface simply by calling it with no arguments (python -m pydown) or by using its functions in your own code.As of version 1.2.1, pydown requires Distribute or setuptools to install.The bugtracker is available athttps://github.com/Nathan2055/pydown/issues. The documentation can be found athttps://github.com/Nathan2055/pydown/wiki.
Package: pyDownload
PyDownloadThis package aims to provide the functionality to download large files from the internet using chunked and multithreaded downloads.IndexCommand Line UsageFeaturesInstallationUsageDeveloper GuideBug Reporting GuideContribution GuideSayThanksCommand Line usageThe package can be used to perform multithreaded downloads via the CLI.UsagepyDownloadhttps://github.com/party98/Python-Parallel-Downloader/archive/master.zipConfig Optionspositionalarguments:urllistofurlstodownload

optionalarguments:-h,--helpshowthishelpmessageandexit-oFILENAME,--outputFILENAMEoutputfile-tNUM_THREADS,--threadsNUM_THREADSnumberofthreadstouse-cCHUNK_SIZE,--chunk-sizeCHUNK_SIZEchunksize(inbytes)--versiondisplaytheversionofpyDownloadbeingusedFeaturesWritten in pure python.Supports ability to perform multithreaded downloads from any url if the server supports.Small and concise API therefore easy to integrate in python code.InstallationpipinstallpydownloadUsageimporttimefrompyDownloadimportDownloaderurl='https://github.com/party98/Python-Parallel-Downloader/archive/master.zip'downloader=Downloader(url=url)ifdownloader.is_running:time.sleep(1)print('File downloaded to%s'%downloader.file_name)Developer GuideSetting Up The EnvironmentSetup VirtualEnv (Recommended But Optional)pipinstallvirtualenv
virtualenvenvsource./env/bin/activateInstall Dependenciespipinstall.[dev]Install pre-commit hooksThe project uses various pre-commit hooks to enforce code quality and standards. Therefore, it is really necessary for all the contributors to install these and run before every commit else the contributions will be rejected.Stepspre-commitinstallRunning TestsInstall Dependenciespipinstall.[test]Run the TestsWith Coverage Report (Recommended)nosetests --cover-erase --cover-package=pyDownload --with-coverage --cover-branchesWithout Coverage Reportnosetests --cover-erase --cover-package=pyDownload  --cover-branchesBug Reporting GuideYou can report bugshere.Make sure you are using the latest version. (Check by runningpyDownload --version).Search for the issue in existing issues (open & closed) and create only if the issue is not mentioned.Fill the issue template correctly.Note: If you feel that you can fix the issue, you are more than welcome to submit a PR.Contribution GuideContributors are welcome to make this package more awesome. But before you do, make sure that you have read the following limited but important guidelines.Make sure that the issue that you are trying to fix existshere. Create one if it does not.Make sure that you performflake8checks on the code before you submit a PR.Write unittests and comments for the changes that you have made.Make sure your branch is updated with thedevelopmentbranch.All PRs should be submitted todevelopmentbranch. PRs to any other branch will be rejected.Please install and performpre-commitcheck on all your commits to maintain code qualitySayThanksYou can thank the teamhere.
Package: pydownloader-01
#Pydownloader packageDownload files available in a URL by pythonThis package receives a URL and the type of files you would like to collect from the URL and returns all available files of the requested type that can be foudn in the URL.The current version ofpydownloaderreturns PDF files only. Nevertheless,pydownloaderis under development and will be updated continuously to support various file types in the future.Installationpip install pydownloader-01How to use itfrompydownloaderimportDownloadpdf=Download(URL)pdf.download()
Package: pydownloadfile
pydownloadfilePython3 module to download files using requests.InstallationInstall with pippip3 install -U pydownloadfileUsageIn [1]: from pathlib import Path

In [2]: import pydownloadfile

In [3]: pydownloadfile.download_file(
    url="https://...",
    filepath=Path("foobar...")
    headers=None
    proxies=None
    )
Package: pydownloads
InstallationpipinstallpydownloadsDocumentationDownload statisticsParameters:package_name (string) - python package nameCodefrompydownloadsimportStatsstats=Stats('pykeyboard')Total downloadsCodefrompydownloadsimportStatsstats=Stats('pykeyboard')print(stats.total)Result1419Total 7 daysCodefrompydownloadsimportStatsstats=Stats('pykeyboard')print(stats.week)Result240Total 30 daysCodefrompydownloadsimportStatsstats=Stats('pykeyboard')print(stats.month)Result1068Custom countParameters:days (integer) - amount of days.No more than 30 daysversion (string, default None) - package versionCodefrompydownloadsimportStatsstats=Stats('pykeyboard')print(stats.custom_count(3,'0.1.0'))Result127
Package: pydownsampler
A Python package for downsampling sequence alignment files.Installationpydownsampler is available throughpypi. To install, type:pipinstallpydownsamplerUsage$pydownsampler(<file>)[-d<dcov>]$pydownsampler(<file>)[-d<dcov>][-o<output>]$pydownsampler(<file>)[-c]$pydownsampler[-h]|[--help]$pydownsampler[-v][--version]Arguments and OptionsArgument/ OptionDescription-h,--helpShow help message to screen.-v,--versionShow version.<file>Input BAM/CRAM/SAM file-d,--downcoverageThe coverage you want to downsample to
(Required argument)-o,--outputOutput filename prefix (Optional)-c,--coverageCheck file coverageExamples# option 1 (default):$pydownsamplerinput.bam-d10Intheexampleabove,thefile'input.bam'willbedownsampledto10Xcoverage.Theoutputfilenamewillbe'input.Downsampled10X.bam'.# option 2 (optional):$pydownsamplerinput.bam-d10-odownsampled# check coverage of a BAM/CRAM/SAM file$pydownsamplerinput.bam-cAuthorsLindokuhle NkambuleScott HazelhurstLicensepydownsampler is generously distributed under The MIT License
Package: pydownsongs
pydownsongsPydownsongs is intended for both developers and regular users to download songsInstallationInstall by typing the following in CMD/PowerShell (Windows):python-mpipinstallpydownsongsFor Mac/Linux, type the following in Terminal/PowerShell:python3-mpipinstallpydownsongsNote: The script requires Python3 and is not supported for Python2UsageRefer to these quality levels first:1: Very High2: High3: Medium4: Low5: Very LowPydownsongs can be used in following ways:directly through command line:Give the list of songs directly in command line followed by quality level numberpydownsongs<song1><song2>....<qualitynumber>Example:pydownsongs"Closer chainsmokers"3by using the file method directly in command line:You can store the name of songs in a text file and can download songs using command like this:pydownsongs-f<filename><qualitynumber>Example:pydownsongs-fsongs.txt4by using the spotify playlist directly in command line:You can download the tracks of a spotify playlist directly by providing a link of playlist and then the quality level like this:pydownsongs-s"<link>"<qualitynumber>Example:pydownsongs-s"https://open.spotify.com/playlist/7KMTl7JzxUt5pRaOu77Omu?si=722aaaa6a18d41e0"4But, for this to work, you have to create your spotify developer id and secrets atdeveloper.spotify.comand then add both these in following format in a file named pydownsongs.toml in the following format:id='<youridhere>'secrets='<yoursecretpasswordhere>'This file has to be placed in the following location: ~/.config/pydownsongs.toml (on GNU/Linux)C:\Users\.config\pydownsongs.toml (on windows)by calling download function in through a python program:importpydownsongspydownsongs.download(songname,qualitylevel)Example:importpydownsongspydownsongs.download("closer chain smokers",2)by calling downloadarray function through python program:This function can be called to download a list of songsarr=["a","b","c"]pydownsongs.downloadarray(arr,4)Example:arr=["closer chainsmokers","yaara tere wargaa jass manak"]pydownsongs.downloadarray(arr,4)Notes(I assume that the songs rank top on youtube when given the names that you have mentioned in the list. If there may be duplicate songs, consider writing keywords with songname like if you want to search the song Closer, you may type "Closer chainsmokers".)
Make sure that you have active Internet Connection otherwise the script would show you "No Internet Connection" and would exit itself. If any song(s) could not be downloaded by the script it would show "Some error occured" after the song and the name of that song would be copied to failedtemp.txt (this file would be created in the folder in which you are running the script if there are any fails).DisclaimerThis script does not promote the downloading of copyright content. This is solely for educational purposes for learning web scrapping by python. I am not responsible for any piracy.CreditsSpecial thanks to Swayam Gagneja (swayamgagneja12345@gmail.com) for providing base for spotify playlist file to which I made subsequent changes and linked to main file
Package: pydozeoff
As a Linux user, I don’t have access to so called “professional” presentation
softwares such as Apple Keynote or MS PowerPoint. OpenOffice Impress used to be
my first choice, but I gave up using it since it’s a memory/processor hog for
medium-sized presentations.After a little research, I came across a wonderful tool calledS5. It was a
perfect fit, except for the one-big-fat-presentation-html thing and the lack of
syntax highlighting.This is what I’m trying to solve with this project.
Package: pydozer
Connect any data source, combine them in real-time and instantly get low-latency gRPC and REST APIs.⚡ All with just a simple configuration! ⚡️OverviewThis repository is a python wrapper over gRPC APIs that are automatically when you runDozer.Installationpoetryaddgit+ssh://git@github.com:getdozer/dozer-python.git#main# orpipinstallpydozerDependenciesDozerPoetryQueryingIntialize Users Endpointapi_client=ApiClient("users")api_client.query()# Query using $limit, $order_by, $filterapi_client.query({"$limit":1})#Countapi_client.count()gRPC methodsapi_client.describe()#Healthapi_client.health()IngestionInitialize Ingestion Clientfrom dozer.ingest import IngestClient
ingestion_client = IngestClient()Ingest a data framedf=pl.read_parquet('tests/trips_small.parquet')ingestion_client.ingest_df('trips',df,seq_no=1)UseArrow Formatfor ingestioningestion_client.ingest_df_arrow('trips',df,seq_no=1)Ingest raw recordsfrompydozer.ingest_pb2importIngestRequestfrompydozer.types_pb2importRecord,Valueuser=IngestRequest(schema_name="users",typ=0,old=None,new=[Value(int_value=1),Value(string_value="vivek")],seq_no=1)ingestor.ingest(user)Ingest in Arrow formatCheck out ourDocsfor more information.TestingpytestContributingPlease refer toContributingfor more details.
Package: pydozer-log
dozer-log-pythonThis is the Python binding for reading Dozer logs.Installationpip install pydozer_logTroubleshootThis library contains native code so have limited platform support.If above command gives you:ERROR: Could not find a version that satisfies the requirement pydozer_log (from versions: none)
ERROR: No matching distribution found for pydozer_logit means your platform is not supported.As a general rule, we support CPython >= 3.10 on Windows, MacOS and Linux, both amd and arm architectures. Meanwhile, some other versions of PyPy and CPython with certain platform combinations are also supported.To see all supported platforms, please check the file list athttps://pypi.org/project/pydozer-log/#files.UsageAssume your have Dozer running and the app is listening tohttp://127.0.0.1:50053, and you have an endpoint namedtrips. You can read the Dozer logs in Python as follows:importpydozer_logreader=awaitpydozer_log.LogReader.new('http://127.0.0.1:50053','trips')print(awaitreader.next_op())DevelopInstallmaturinin your Python environment:pipinstallmaturinInstall the development version ofdozer-log-python:maturindevelop--featurespython-extension-moduleThe whole library is behind a feature flag, so you need to specify--features python-extension-moduleto enable it.
This is aknown issueofpyo3.SeePyO3for more information.Run exampleFrom the repository root:pythonexamples/reader.py
Package: pydp832-tspspi
Rigol DP832 powersupply control library (unofficial, Python)This is acurrently under developmentcontrol library for the DP832
power supply. It implements thePowerSupplybase class from
thepylabdevsbase
class.Currently only control via Ethernet is implemented in theDP832LANclass.Simple usage examplewith DP832LAN("10.4.1.12", logLevel = "DEBUG") as dp:
   print(dp.idn())
   dp.setChannelEnable(True, 1)
   dp.setVoltage(23, 1)
   dp.setCurrent(1.2, 1)
   print(f"Measured voltage {dp.getVoltage(1)} and current {dp.getCurrent(1)}")
   dp.setChannelEnable(False, 1)