Saravanan666/pypi-org huggingface dataset:
Package: pydbus
pydbus======.. image:: https://travis-ci.org/LEW21/pydbus.svg?branch=master:target: https://travis-ci.org/LEW21/pydbus.. image:: https://badge.fury.io/py/pydbus.svg:target: https://badge.fury.io/py/pydbusPythonic DBus library.Changelog: https://github.com/LEW21/pydbus/releasesRequirements------------* Python 2.7+ - but works best on 3.4+ (help system is nicer there)* PyGI_ (not packaged on pypi, you need to install it from your distribution's repository - it's usually called python-gi, python-gobject or pygobject)* GLib_ 2.46+ and girepository_ 1.46+ (Ubuntu 16.04+) - for object publication support.. _PyGI: https://wiki.gnome.org/Projects/PyGObject.. _GLib: https://developer.gnome.org/glib/.. _girepository: https://wiki.gnome.org/Projects/GObjectIntrospectionExamples--------Send a desktop notification~~~~~~~~~~~~~~~~~~~~~~~~~~~.. code-block:: pythonfrom pydbus import SessionBusbus = SessionBus()notifications = bus.get('.Notifications')notifications.Notify('test', 0, 'dialog-information', "Hello World!", "pydbus works :)", [], {}, 5000)List systemd units~~~~~~~~~~~~~~~~~~.. code-block:: pythonfrom pydbus import SystemBusbus = SystemBus()systemd = bus.get(".systemd1")for unit in systemd.ListUnits():print(unit)Start or stop systemd unit~~~~~~~~~~~~~~~~~~.. code-block:: pythonfrom pydbus import SystemBusbus = SystemBus()systemd = bus.get(".systemd1")job1 = systemd.StopUnit("ssh.service", "fail")job2 = systemd.StartUnit("ssh.service", "fail")Watch for new systemd jobs~~~~~~~~~~~~~~~~~~~~~~~~~~.. code-block:: pythonfrom pydbus import SystemBusfrom gi.repository import GLibbus = SystemBus()systemd = bus.get(".systemd1")systemd.JobNew.connect(print)GLib.MainLoop().run()# orsystemd.onJobNew = printGLib.MainLoop().run()View object's API~~~~~~~~~~~~~~~~~.. code-block:: pythonfrom pydbus import SessionBusbus = SessionBus()notifications = bus.get('.Notifications')help(notifications)More examples & documentation~~~~~~~~~~~~~~~~~~~~~~~~~~~~~The Tutorial_ contains more examples and docs... _Tutorial: https://github.com/LEW21/pydbus/blob/master/doc/tutorial.rstCopyright Information---------------------Copyright (C) 2014, 2015, 2016 Linus Lewandowski <linus@lew21.net>This library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Package: pydbusdecorator
Python decorators to define dbus
interface, then use it as lib.For examples see mpris2
(https://github.com/hugosenari/mpris2)See also:dbus2any: convert dbus instrospection into code
(https://github.com/hugosenari/dbus2any)Require:Python dbusExample:Import decorators>>> from dbusdecorator import DbusAttr, DbusInterface, DbusMethodDefine dbus interface>>> @DbusInterface('org.mpris.MediaPlayer2', '/org/mpris/MediaPlayer2')
>>> class Player(object):
>>>    @DbusMethod
>>>    def Next(self):
>>>       pass
>>>    @DbusAttr
>>>    def Volume(self):
>>>       passUse your definition>>> mediaplayer2 = Player(
>>>    dbus_interface_info={
>>>       'dbus_uri': 'org.mpris.MediaPlayer2.gmusicbrowser'})
>>> mediaplayer2.Next()
>>> print mediaplayer2.Volume
>>> mediaplayer2.Volume = 1
>>> print mediaplayer2.Volume # integer = 1 :PSee also:dbus2any is a subproject now I created a project only for this
(https://github.com/hugosenari/dbus2any)
Package: py-dbutils
Last build statusPython Wrapper to interface with various databases.
Connects to multiple databases to use for data pipelines and etlDescriptionForget about boiler plate code to setup and tear database connections:
This library will give you all the basic methods to pull and push data from various types of database
Initial release will support Postgres and Mysql.
I will focus on python 3.7 just to discourage people from continuing the python 2.7 train.
Move to 3.6+ and get learn something new.Pypi builds:https://pypi.org/project/py-dbutils/pip install py_dbtuilsThis package wraps high level calls needed to interface with a database.
Get the programmer out of worrying about how to connect to and manage a database connection.
Start using it.
Currently supports:
postgres
mysql
mssql
msaccess
sqliteNB:
Install jaydebeapi if you need to mess with JAVA JDBC
Package: py-db-wrapper
# py-db-wrapperShallow wrapper for convenience tools for db management## TODO:*  Utils - HiveUtils.get_table_columns(). This should probabkly be generic not in Hive utils.*  Statements - standardise the use of database (or schema) and table (or tablename)## Examples## ConnectionsThe connection class is a simple wrapper to simplify connecting to know database types.Currently supports MSSQL, MYSQL and HIVE.### Making a sql alchemy engine```pyazure_sre_connection = AzureConnection(host=env('AZURE_HOST'),port=env('AZURE_PORT'),database=env('AZURE_DB'),user=env('AZURE_USER'),password=env('AZURE_PASSWORD'))azure_sre_engine = azure_sre_connection.connect()```## StatementsStatement classes are designed to help make various sql statements for different dialect.```pycolumns = HiveUtils.get_table_columns(hive_engine=engine, database='foo', tablename='bar')stmt = CreateTableStatement(dialect=dialect.Mssql, columns=columns)sql = stmt.get_sql(schema='doo',table='dar')print(sql)```## Developer notesPackage deployment etc```shpython setup.py test``````shpython setup.py sdist bdist_egg``````shtwine upload --repository-url https://test.pypi.org/legacy/ dist/*twine upload dist/*```
Package: pyDCAM
pyDCAMpyDCAMis the python bindings for Hamamatsu DCAM-API, allowing one to control Hamamatsu cameras in python.
The documentation and the examples can be found at:https://pydcam.pages.dev/DependenciesDCAM-APIpyDCAMrelies on DCAM-API to interact with the camera. The installation file of DCAM-API can be downloaded from:https://dcam-api.com/downloads/InstallationOne can installpyDCAMpackage via the following commandpip install .One can also clone the repository to install it in the develop mode:pip install -e .TestRun the tests in the tests folder:pytest -v tests/
Package: pydcard
This is a Dcard API wrapperOverviewPydcard is a Python wrapper for accessing the Dcard API.Pydcard only support in Python 3InstallationThe current release of Pydcard is available throughPyPi:pip install pydcardDependenciespipdoes install dependenciesrequestsUsageThe basic usageimport pydcard
from pprint import pprint

# Get top posts in *all* forum from Dcard. The parameter is page number.
page_one = pydcard.get_all_top_posts(1)

# Each page have 20 threads, now get the id in index 0.
# i.e. the first thread's id.
th_one_id = page_one[0].get('id')

# Using thread id to get the post content
pprint((pydcard.get_post(th_one_id)))The complicated example (Need to installprettytablepackage)dcard_termAPIget_post(post_id)Getting post content by post ID.get_all_top_posts(to_page_num)Getting top posts fromallforum. From page 1 to pageto_page_num.get_all_new_posts(to_page_num)Getting recently posts fromallforum. From page 1 to pageto_page_num.get_all_page(page_num)Getting recently posts fromallforum, only one page.RelatedSee Node.js Dcard API wrapper package innpm.
Package: pydcm2png
pydcm2pngThis usefull tool is for converting DICOM format file to PNG file. 
DICOM file is a common file format in medical image processing, so we always need to import DICOM file to our project.
Cause of the complex procedure, that's not a easy thing to using it, though there are some tools for that, like dcmtk(c++),pydcm(python) and some other tools; dcmtk is a c++ library, it's a very powerful tools when process dicom file, but it requires developer know lots of details of dicom format and c++ knowledge; pydcm is a light tool in python, but it only can deal with part of dicom format and it can not convert pixel data of dicom to png file rightly based on DIOCM procedure, for example, DICOM format file consists of varity of storgae format including int8,uint8,int16,uint16 etc, also we need to conside different alogrithms dealing with such different storage format. 
So I developped pydcm2png tools for overcoming problems above. Now pydcm2png support py2/py3 on Linux.
    Using the following command can easily install pydcm2png:
	pip install pydcm2png
This tool was developped with C++ and python. 
    I use dcmtk(https://support.dcmtk.org/docs/index.html) STK as image processing library.
Package: pyDcmio
DICOM managment package.Home-page:https://github.com/neurospin/pydcmioAuthor: pyDcmio developers
Author-email:antoine.grigis@cea.frLicense: CeCILL-B
Description: PYDCMIO: Python DiCoM IO[pydcmio] A Python project that provides a wrapping over the ‘dcm2nii’ and ‘dcm2niix’ commands, common tools to read and anonymize DICOM files, and transcoding features.Platform: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Environment :: X11 Applications :: Qt
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Utilities
Package: pydcmtk
pydcmtkA wrapper to call dmctk binariesImplementedcda2dcmdcm2pnmdcmconvdcmdrledcmgpdirdcmmkcrvdcmp2pgmdcmpsmkdcmqridxdcmrecvdcod2lumdsr2xmlfindscumkreportstl2dcmwlmscpfsdcm2xmldcmcrledcmdspfndcmicmpdcmmkdirdcmprscpdcmpsprtdcmqrscpdcmscaledconvlumdsrdumpgetscumovescustorescpxml2dcmdcm2jsondcmcjpegdcmdjpegdcmdumpdcmj2pnmdcmmklutdcmprscudcmpsrcvdcmqrtidcmsenddrtdumpdump2dcmimg2dcmmsgservstorescuxml2dsrdcm2pdfdcmcjplsdcmdjplsdcmftestdcml2pnmdcmodifydcmpschkdcmpssnddcmquantdcmsigndsr2htmlechoscupdf2dcmtermscu
Package: pydcop
# Dcop python[![Documentation Status](https://readthedocs.org/projects/pydcop/badge/?version=latest)](http://pydcop.readthedocs.io/en/latest/?badge=latest)
[![Build Status](https://travis-ci.org/Orange-OpenSource/pyDcop.svg?branch=master)](https://travis-ci.org/Orange-OpenSource/pyDcop)pyDCOP is a python library for Distributed Constraints Optimization.
It contains implementations of several standard DCOP algorithms (MaxSum, DSA,
DPOP, etc.) and allows you to develop your own algorithms.pyDCOP runs on python >= 3.5.## InstallationUsing pip is recommended, on ubuntu :sudo apt-get install python3-setuptools
sudo apt-get install python3-pipI also recommend installing pyDCOP in a virtualenv, in order to avoid any
conflict with other applications you might have:python3 -m venv ~/.pydcop
source ~/.pydcop/bin/activateFor now, installation is only from source :cd pydcop
pip install .Or without pip, simply use :python3 setup.py installWhen developing on DCOP-python, one would rather use the following command,
which installs pydcop in development mode and test dependencies:pip install -e .[test]To generate documentation, you need to install the corresponding dependencies:pip install -e .[doc]
Package: pyddm
PyDDM - Generalized drift-diffusion models for PythonOverviewPyDDM is a simulator and modeling framework for generalized drift-diffusion
models (DDM), with a focus on cognitive neuroscience.Key features include:Models solved numerically using Crank-Nicolson to solve the
Fokker-Planck equation (Backward Euler, analytical solutions, and
particle simulations also available)Arbitrary functions for drift rate, noise, bounds, and initial
position distributionArbitrary loss function and fitting method for parameter fittingOptional multiprocessor supportOptional GUI for debugging and gaining an intuition for different
modelsConvenient and extensible object oriented API allows building models
in a component-wise fashionVerified accuracy of simulations using novel program verification
techniquesSee thedocumentation,FAQs, ortutorialfor more
information.  If you want to try it out before installing, visit theinteractive online
demo.
See theGithub Forumsfor help
from the PyDDM community.  You can also sign up forrelease announcements by
email.InstallationNormally, you can install with:$ pip install pyddmIf you are in a shared environment (e.g. a cluster), install with:$ pip install pyddm --userIf installing from source,download the source code, extract, and do:$ python3 setup.py installSystem requirementsPython 3.5 or aboveNumpy version 1.9.2 or higherScipy version 0.16.0 or higherMatplotlibParanoid ScientistPathos (optional, for multiprocessing support)A C compiler (If you don't already have one, the easiest way to install one
may be by installing Cython.)ContactFor help on using PyDDM, see theGithub
Forums.Please report bugs tohttps://github.com/mwshinn/pyddm/issues.  This
includes any problems with the documentation.  Pull Requests for bugs are
greatly appreciated.Feature requests are currently not being accepted due to limited
resources.  If you implement a new feature in PyDDM, please do the
following before submitting a Pull Request on Github:Make sure your code is clean and well commentedIf appropriate, update the official documentation in the docs/
directoryEnsure there are Paranoid Scientist verification conditions to your
codeWrite unit tests and optionally integration tests for your new
feature (runtests.sh)Ensure all existing tests passFor all other questions or comments, contactm.shinn@ucl.ac.uk.LicenseAll code is available under the MIT license.  See LICENSE.txt for more
information.
Package: pyddq
Python API of Drunken Data Quality.https://github.com/FRosner/drunken-data-qualityDescriptionDDQ is a small library for checking constraints on Spark data structures.
It can be used to assure a certain data quality, especially when continuous imports happen.NoteThis project has been set up using PyScaffold 2.5.6. For details and usage
information on PyScaffold seehttp://pyscaffold.readthedocs.org/.
Package: pyddragon
pyddragonPython wrapper library providing LoL ddragon data asynchronously (On dev)Installationpip install pyddragonExample Codeimportasynciofrompyddragon.ddragonimportDdragonasyncdefmain():asyncwithDdragon()asdd:ch_by_name=awaitdd.get_champion("Aurelion Sol","name")ch_by_id=awaitdd.get_champion("AurelionSol")ch_by_key=awaitdd.get_champion(136)print(f"{ch_by_name.name}-{ch_by_name.id}-{ch_by_name.key}")print(f"{ch_by_id.name}-{ch_by_id.id}-{ch_by_id.key}")print(f"{ch_by_key.name}-{ch_by_key.id}-{ch_by_key.key}")print(f"\n{ch_by_name.blurb}\n")it_by_name=awaitdd.get_item("Sorcerer's Shoes")it_by_id=awaitdd.get_item(3020)print(f"{it_by_name.name}-{it_by_name.id}")print(f"{it_by_id.name}-{it_by_id.id}")print(f"\n{it_by_name.plaintext}\n")ru_by_name=awaitdd.get_rune("Prototype: Omnistone","name")ru_by_id=awaitdd.get_rune("MasterKey")ru_by_key=awaitdd.get_rune(8358)print(f"{ru_by_name.name}-{ru_by_name.id}-{ru_by_name.key}")print(f"{ru_by_id.name}-{ru_by_id.id}-{ru_by_id.key}")print(f"{ru_by_key.name}-{ru_by_key.id}-{ru_by_key.key}")print(f"\n{ru_by_name.short_desc}\n")su_by_name=awaitdd.get_summoner("Barrier","name")su_by_id=awaitdd.get_summoner("SummonerBarrier")su_by_key=awaitdd.get_summoner(21)print(f"{su_by_name.name}-{su_by_name.id}-{su_by_name.key}")print(f"{su_by_id.name}-{su_by_id.id}-{su_by_id.key}")print(f"{su_by_key.name}-{su_by_key.id}-{su_by_key.key}")print(f"\n{su_by_name.image}\n")asyncio.run(main())Output:Aurelion Sol - AurelionSol - 136
Aurelion Sol - AurelionSol - 136
Aurelion Sol - AurelionSol - 136

Aurelion Sol once graced the vast emptiness of the cosmos with celestial wonders of his own devising. Now, he is forced to wield his awesome power at the behest of a space-faring empire that tricked him into servitude. Desiring a return to his...

Sorcerer's Shoes - 3020
Sorcerer's Shoes - 3020

Enhances Movement Speed and magic damage

Prototype: Omnistone - MasterKey - 8358
Prototype: Omnistone - MasterKey - 8358
Prototype: Omnistone - MasterKey - 8358

Periodically grants a single use of another random keystone.

Barrier - SummonerBarrier - 21
Barrier - SummonerBarrier - 21
Barrier - SummonerBarrier - 21

SummonerBarrier.png
Package: pydds
pyddsReplacement library for ImageMagick to decompress from many DDS pixel formats with an optional crop to a target region. While cropping can be done with separate libraries like Pillow doing it as part of decompression can save a lot of work as only the required blocks will be decompressed.Usagedecode_ddstakes a blob of bytes and an optional cropping region, returning a PIL Image for further processing.fromddsimportdecode_dds# optional cropping region of (x0, y0, w, h) to be applied while decodingcrop=(0,0,20,20)withopen('Atlas.dds','rb')asfh:img=decode_dds(fh.read(),crop)
Package: pyddx
ddXDocumentationBuild StatusInstallationddX is an open-source software package for continuum solvation models based on
the domain decomposition paradigm. It contains a common interface for the three
different methods ddCOSMO, ddPCM and ddLPB for the numerical solution to the
COSMO, PCM and LPB solvation models.  ddX computes for these methods the
electrostatic contribution to the solvation energy, the corresponding
contribution to the forces and/or the contribution to the Fock- or DFT
Kohn-Sham-matrix.  Using the common interface, all three methods are accessible
from a host-code that is used to model the solute and which can be on the level
of QM, QM/MM, polarizable MM or MM, or as a standalone application.DocumentationThe code is documented through the Doxygen, visit theddX-documentation.LicenseddX: an open-source software package for continuum solvation models based on the domain decomposition paradigm.Copyright (c) 2022 The ddX Developers.ddX is free software; you can redistribute it and/or modify it under the terms of the LGPL-3.0 License.
Package: pyDE1
DescriptionA fully functional, API-first implementation of core software for
control and use of the Decent Espresso DE1.It provides core components, which can be run as an unattended service
that automatically starts at boot, to supply stable, versioned APIs to
provide all primary functions of use of a DE1 and data collection around
it.A web app has been able to demonstrate sufficiency of the APIs and
functionality for the majority of day-to-day operations, including
real-time graphing and history display. A running example is available,
linked from DecentForum.com. It uses the supplied, stand-alone “replay”
application to play back a shot in real time. This tool is also useful
for development of companion applications.Profiles and real-time data are captured into a SQLite3 database that
allows multiple, concurrent access.A stand-alone program is provided that can automatically upload “shots”
to Visualizer as soon as they complete. It can also notify consumers of
the URL returned.An example program is provided that generates legacy-style, “shot files”
that are compatible with Visualizer and John Weiss’ shot-plotting
programs.The APIs are under semantic versioning. The REST-like, HTTP-transport
versions can be retrieved fromversionat the document root, and
also include the Python and package versions installed. Each of the
JSON-formatted, MQTT packets contains aversionkey:value for that
payload.Consumers of these APIs should only need to understand high-level
actions, such as “Here is a profile blob, please load it.” The
operations and choice of connectivity to the devices is “hidden” behind
the APIs.Documentation and SourceDocumentation is available athttps://pyde1.readthedocs.io/en/latest/Source code is available athttps://github.com/jeffsf/pyDE1.gitRequirementsPython 3.8 or later.Current plans are to continue to support two versions prior to the
latest Python version.PEP
664shows a schedule of
October, 2022 for Python 3.11.0 release. Users should plan on moving to
at least Python 3.9 prior to that release. Python 3.9 is
“standard” with the Debian Bullseye distro, as well as the current,
Raspberry Pi OS release.Available throughpipand installed as dependencies:aiosqlitebleakpaho-mqttPyYAMLrequestsAn MQTT broker compatible with MQTT 5 clients, such asmosquitto 2.0A production-quality web server, such asnginxis highly recommended
operating as a reverse proxy, rather than directly exposing the Python
web server.Status — ReleaseThis code is used on a daily basis for operation of the author’s DE1.LicenseCopyright © 2021, 2022 Jeff Kletsky. All Rights Reserved.License for this software, part of the pyDE1 package, is granted underGNU General Public License v3.0 onlySPDX-License-Identifier: GPL-3.0-only
Package: pydeako
pydeakoDescriptionpydeakois a Python library for discovering, connecting to, and interacting with Deako smart devices on the local network.Installationpip install pydeakoUsagepydeakomdns discovery clientimport asyncio
from pydeako import discover

async def _discover():
    d = discover.DeakoDiscoverer()
    try:
        address = await d.get_address()
        print(f"Found deako device at {address}!")
    except discover.DevicesNotFoundException:
        print("No devices found!")
        pass

if __name__ == "__main__":
    asyncio.run(_discover())pydeakosocket clientimport asyncio
from pydeako import deako, discover

async def _discover():
    client_name = "MyClient"
    d = discover.DeakoDiscoverer()
    deako_client = deako.Deako(d.get_address, client_name=client_name)

    await deako_client.connect()
    await deako_client.find_devices()

    devices = deako_client.get_devices()

    # turn on all devices
    for uuid in devices:
        await deako_client.control_device(uuid, True)

if __name__ == "__main__":
    asyncio.run(_discover())ContributingDev environment setupUse Python 3.11+python -m venv venvsource venv/bin/activatepip install -r requirements.txtpip install -r requirements_test.txtCheckspylint pydeakopycodestyle pydeakopytest pydeakoLicenseMIT License, see LICENSE.txtProject statusActively maintained by Deako.