Saravanan666/pypi-org huggingface dataset:
Package: python-ethermine
python-ethermineWhat it isAn API Wrapper for the Ethermine API. Easily allows you to create a client and access the data for your mining
operationHow to use itfrom python_ethermine import EthermineClient

WORKER = "sanyi"
ETH_ADDRESS = "0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8"

client = EthermineClient()

# Miner Tests
dashboard = client.Miner.get_dashboard(address=ETH_ADDRESS)
history = client.Miner.get_history(address=ETH_ADDRESS)
payouts = client.Miner.get_payouts(address=ETH_ADDRESS)
rounds = client.Miner.get_rounds(address=ETH_ADDRESS)
settings = client.Miner.get_settings(address=ETH_ADDRESS)
statistics = client.Miner.get_statistics(address=ETH_ADDRESS)

# Worker tests
all_worker_stats = client.Worker.get_all_worker_stats(address=ETH_ADDRESS)
individual_worker_stats = client.Worker.get_individual_worker_stats(address=ETH_ADDRESS, worker=WORKER)
individual_historical_worker_stats = client.Worker.get_individual_historical_worker_stats(address=ETH_ADDRESS, worker=WORKER)

# Pool stats
basic_pool_stats = client.Pool.get_basic_pool_stats()
mined_blocks_stats = client.Pool.get_mined_blocks_stats()
network_statistics = client.Pool.get_network_statistics()
server_hashrate_stats = client.Pool.get_server_hashrate_stats()The latest versionThe current version of this program is written for Python 3.8LicensingCopyright 2021 Carl ArgabrightLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.Contactcarl.argbright@gmail.com
Package: python-ethumb
Python bindings for Ethumb, part of Enlightenment Foundation Libraries.Ethumb is a small, display independent, and quick thumbnailing library.The lib itself conforms to the standard put forth by freedesktop.org You
can find out more information about it athttp://triq.net/~jens/thumbnail-spec/index.html.  It seemed better to
break it out into a component that only depended on what was absolutely
necessary.Ethumb uses Evas to create thumbnails.
Package: python-eufy-security
python-eufy-securityThis is an experimental Python library for Eufy Security devices (cameras, doorbells,
etc.).Python VersionsThe library is currently supported onPython 3.6Python 3.7Python 3.8Installationpipinstallpython-eufy-securityAccount InformationBecause of the way the Eufy Security private API works, an email/password combo cannot
work withboththe Eufy Security mobile appandthis library. It is recommended to
use the mobile app to create a secondary "guest" account with a separate email address
and use it with this library.UsageEverything starts with an:aiohttpClientSession:importasynciofromaiohttpimportClientSessionasyncdefmain()->None:"""Create the aiohttp session and run the example."""asyncwithClientSession()aswebsession:# YOUR CODE HEREasyncio.get_event_loop().run_until_complete(main())Login and get to work:importasynciofromaiohttpimportClientSessionfromeufy_securityimportasync_loginasyncdefmain()->None:"""Create the aiohttp session and run the example."""asyncwithClientSession()aswebsession:# Create an API client:api=awaitasync_login(EUFY_EMAIL,EUFY_PASSWORD,websession)# Loop through the cameras associated with the account:forcamerainapi.cameras.values():print("------------------")print("Camera Name:%s",camera.name)print("Serial Number:%s",camera.serial)print("Station Serial Number:%s",camera.station_serial)print("Last Camera Image URL:%s",camera.last_camera_image_url)print("Starting RTSP Stream")stream_url=awaitcamera.async_start_stream()print("Stream URL:%s",stream_url)print("Stopping RTSP Stream")stream_url=awaitcamera.async_stop_stream()asyncio.get_event_loop().run_until_complete(main())Check outexample.py, the tests, and the source files themselves for method
signatures and more examples.ContributingCheck for open features/bugsorinitiate a discussion on one.Fork the repository.Install the dev environment:make init.Enter the virtual environment:source ./venv/bin/activateCode your new feature or bug fix.Write a test that covers your new functionality.UpdateREADME.mdwith any new documentation.Run tests and ensure 100% code coverage:make coverageEnsure you have no linting errors:make lintEnsure you have typed your code correctly:make typingSubmit a pull request!
Package: python-eufy-security-rik
python-eufy-securityThis is an experimental Python library for Eufy Security devices (cameras, doorbells,
etc.).Python VersionsThe library is currently supported onPython 3.6Python 3.7Python 3.8Installationpipinstallpython-eufy-securityAccount InformationBecause of the way the Eufy Security private API works, an email/password combo cannot
work withboththe Eufy Security mobile appandthis library. It is recommended to
use the mobile app to create a secondary "guest" account with a separate email address
and use it with this library.UsageEverything starts with an:aiohttpClientSession:importasynciofromaiohttpimportClientSessionasyncdefmain()->None:"""Create the aiohttp session and run the example."""asyncwithClientSession()aswebsession:# YOUR CODE HEREasyncio.get_event_loop().run_until_complete(main())Login and get to work:importasynciofromaiohttpimportClientSessionfromeufy_securityimportasync_loginasyncdefmain()->None:"""Create the aiohttp session and run the example."""asyncwithClientSession()aswebsession:# Create an API client:api=awaitasync_login(EUFY_EMAIL,EUFY_PASSWORD,websession)# Loop through the cameras associated with the account:forcamerainapi.cameras.values():print("------------------")print("Camera Name:%s",camera.name)print("Serial Number:%s",camera.serial)print("Station Serial Number:%s",camera.station_serial)print("Last Camera Image URL:%s",camera.last_camera_image_url)print("Starting RTSP Stream")stream_url=awaitcamera.async_start_stream()print("Stream URL:%s",stream_url)print("Stopping RTSP Stream")stream_url=awaitcamera.async_stop_stream()asyncio.get_event_loop().run_until_complete(main())Check outexample.py, the tests, and the source files themselves for method
signatures and more examples.ContributingCheck for open features/bugsorinitiate a discussion on one.Fork the repository.Install the dev environment:make init.Enter the virtual environment:source ./venv/bin/activateCode your new feature or bug fix.Write a test that covers your new functionality.UpdateREADME.mdwith any new documentation.Run tests and ensure 100% code coverage:make coverageEnsure you have no linting errors:make lintEnsure you have typed your code correctly:make typingSubmit a pull request!
Package: python-eunuchs
Eunuchs is a library of Python extension that complement the standard
libraries in parts where full support for the UNIX API (or the Linux
API) is missing.Most of the functions wrapped by Eunuchs are low-level, dirty, but
absolutely necessary functions for real systems programming. The aim
is to have the functions added to mainstream Python libraries.Current list of functions included:fchdir(2)recvmsg(2) and sendmsg(2), including use of cmsg(3)socketpair(2)
Package: python-euskalmet
Python EuskalmetLibrería cliente de la API de datos de Euskalmet. Permite obtener y manejar la información de la API de datos abiertos
de Euskadi. Cuenta con una serie de modelos de datos y métodos preparados para poder utilizarlos de forma fácil y
accesible.La información que recoge y utiliza esta librería es propiedad de la Agencia Vasca de Meteorología.ATENCIÓN: Esta librería está en desarrollo y por ello, faltan muchas llamadas a la API de datos de Euskalmet. Abre un
issue o un pull request si quieres que esta librería tenga más funcionalidades. Mi tiempo da para lo que da :)InstalaciónUtiliza pip para instalar la librería:pip install python-euskalmetConfiguraciónEs importante crear un directorio de configuración en~/.config/python-euskalmetpara que la librería pueda
guardar la configuración.API KeyObtén tu clave de API en la siguienteweb. Luego, hay que soliticar las claves en laweby guardarla
en~/.config/euskalmet/privateKey.pem.Ficheros de configuraciónPor otro lado, hay que definir un fichero de configuración en el directorio~/.config/euskalmet/settings.cfgcon
la siguiente información:[PAYLOAD]
; Issuer (emisor): description issuer description, ex. company name
iss =
; Timestamp expiration: Ex. 1696081478
exp =
; Emission timestamp: (today's epoch)
iat =
; Api key owner email: Ex. name@company.com
email =ImportanteDestacar, los camposexpyiatsontimestamps(epochs). El campoexp(fecha de expiración) tiene que ser mayor queiat(fecha de emisión del certificado), y dicha emisión la emitirá
el portal de Euskalmet. La fecha de expiración puede ponerse cualquiera, pero siempre más alta que la fecha de hoy.Del mismo modo, el email tiene que ser el mismo que indicaste en la solicitud de Euskalmet.Usar la libreríaSi por ejemplo, se quiere descargar las observaciones de una estación,from euskalmet import Stations
estacion = Stations() # Inicializa el objeto
estacion.automatic_download("C017", multiprocess=True) # Descarga la información de la estaciónPara más información, revisa la documentación.¿Dudas, sugerencias?Para cualquier duda, sugerencia o mejora, siéntete libre de abrir una issue en el repositorio.
Package: python-evas
Python bindings for Evas, part of Enlightenment Foundation Libraries.Evas is a hardware-accelerated canvas API for X-Windows that can draw
anti-aliased text, smooth super and sub-sampled images, alpha-blend,
as well as drop down to using normal X11 primitives such as pixmaps,
lines and rectangles for speed if your CPU or graphics hardware are
too slow.Evas abstracts any need to know much about what the characteristics of
your XServer’s display are, what depth or what magic visuals etc, it
has. The most you need to tell Evas is how many colors (at a maximum)
to use if the display is not a truecolor display. By default it is
suggested to use 216 colors (as this equates to a 6x6x6 color cube -
exactly the same color cube Netscape, Mozilla, gdkrgb etc. use so
colors will be shared). If Evas can’t allocate enough colors it keeps
reducing the size of the color cube until it reaches plain black and
white. This way, it can display on anything from a black and white
only terminal to 16 color VGA to 256 color and all the way up through
15, 16, 24 and 32bit color.
Package: pythonEventB
# python-event-bridge## for run nats server(ubuntu)
1. Get nats project server`bash wgethttps://github.com/nats-io/gnatsd/releases/download/v0.9.4/gnatsd-v0.9.4-linux-amd64.zip`sudo apt-get install -y unzip
unzip -p gnatsd-v0.9.4-linux-amd64.zip gnatsd-v0.9.4-linux-amd64/gnatsd > gnatsd
chmod +x gnatsd
./gnatsd –addr 0.0.0.0 –port 4222
Package: python-event-bridge
# python-event-bridge## for run nats server(ubuntu)
1. Get nats project server`bash wgethttps://github.com/nats-io/gnatsd/releases/download/v0.9.4/gnatsd-v0.9.4-linux-amd64.zip`sudo apt-get install -y unzip
unzip -p gnatsd-v0.9.4-linux-amd64.zip gnatsd-v0.9.4-linux-amd64/gnatsd > gnatsd
chmod +x gnatsd
./gnatsd –addr 0.0.0.0 –port 4222
Package: python-evoqueclient
Evoque======Evoque is a ticket service for OpenStack.* `Launchpad project`_ - release management* `Blueprints`_ - feature specifications* `Bugs`_ - issue tracking* `Source`_* `Specs`_* `How to Contribute`_.. _Launchpad project: https://launchpad.net/python-evoqueclient.. _Blueprints: https://blueprints.launchpad.net/python-evoqueclient.. _Bugs: https://bugs.launchpad.net/python-evoqueclient.. _Source: https://git.openstack.org/cgit/openstack/python-evoqueclient.. _How to Contribute: http://docs.openstack.org/infra/manual/developers.htmlPython Evoqueclient-------------------python-evoqueclient is a client library for Evoque built on the Evoque API.It provides a Python API (the ``evoqueclient`` module) and a command-line tool(``evoque``).Project Resources-----------------Project status, bugs, and blueprints are tracked on Launchpad:* Client bug tracker* https://launchpad.net/python-evoqueclient* Evoque bug tracker* https://launchpad.net/evoqueAdditional resources are linked from the project wiki page:https://wiki.openstack.org/wiki/EvoqueLicense-------Apache License Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
Package: python-evrythng
A comprehensive pythonic wrapper around the Evrythng REST API.For more information about Evrythng and the API that this module wraps, see theEvrythng Documentation Portal.Installationpython-evrythngis available on PyPI and can be installed via pip.$pipinstallpython-evrythngExample UsageimportosfromevrythngimportentitiesEVT_OPERATOR_KEY='your operator key from the Accounts page'os.environ['EVRYTHNG_API_TOKEN']=EVT_OPERATOR_KEYos.environ['PYEVT_DEBUG']='1'print('Creating a  Project...')response=entities.create_project('python-evrythng Project')assertresponse.status_code==201project_id=response.json()['id']print('Creating an Application under Project={}...'.format(project_id))response=entities.create_application(project_id,'python-evrythng Application')assertresponse.status_code==201response_json=response.json()print('You can get the Trusted API key of the Application...')application_id=response_json['id']trusted_app_key=entities.read_trusted_application_key(project_id,application_id)app_key=response_json['appApiKey']print('Trusted App Key ={}for Application={}'.format(trusted_app_key,application_id))Found a bug, wanna help?Awesome, let us know! Create a pull request.
Package: python-evtx
python-evtx is a pure Python parser for Windows Event Log files (those with the file extension “.evtx”). The module provides programmatic access to the File and Chunk headers, record templates, and event entries. For example, you can use python-evtx to review the event logs of Windows 7 systems from a Mac or Linux workstation. The structure definitions and parsing strategies were heavily inspired by the work of Andreas Schuster and his Perl implementation “Parse-Evtx”.
Package: python-ew
python-ewThis is a 2019 updating of thePythonEwPython 2.x compatible modules byOSOPto work with Python 3.xpython-ewis a Python wrapper for accessing a Earthworm shared memory rings, allowing you to extend the Earthworm
system with Python code.Earthwormitself is a set of open source programs, tools and libraries that are used in
the development of software for maintaining seismic networks, research and other seismological and geophysical
applications.Supported message types:TYPE_HEARTBEAT:python_ew.HeartBeatRingTYPE_STATUS:python_ew.StatusRing,python_ew.StatusMessageTYPE_TRACEBUF2:python_ew.Tracebuf2Ring,python_ew.Tracebuf2MessageInstallationIn order to installpython-ew, you need to have first installed Earthworm itself.  This module builds successfully on
Linux againstearthworm-7.9compiled withEWBITS=64and with "-m64 -fPIC" added toGLOBALFLAGSin${EW_HOME}/environment/ew_linux.bash.  Your milage may vary for other versions of Earthworm, or on other platforms.To compile thepython-ewC extensions, we need to find the Earthworm.oand.hfiles.  We'll look in the following
places:Libraries:${EW_HOME}/lib${EW_HOME}/earthworm_7.9/libInclude files:${EW_HOME}/include${EW_HOME}/earthworm_7.9/includeThus, ensure that theEW_HOMEenvironment variable is set apporpriately.Then:pip install python-ewExample usageReading TRACEBUF2 messagesLet's say your ring withTYPE_TRACEBUF2messages is namedWAVE_RING, and you want to get all messages regardless of
what module created them:> python3
>>> from python_ew import Tracebuf2Ring
>>> ring = Tracebuf2Ring('WAVE_RING', 'MOD_WILDCARD')
>>> messages = ring.read()
>>> messages[0]
{'pinno': 0, 'nsamp': 100, 'starttime': 1564770703.968393, 'endtime': 1564770704.958393, 'samprate': 100.0, 'sta': 'FOO', 'net': 'XX', 'chan': 'HNN', 'loc': '--', 'version': '20', 'datatype': 'i4', 'quality': '', 'pad': '', 'samples': [-22129, -22130, -22131, -22132, -22129, -22130, -22128, -22128, -22130, -22128, -22130, -22128, -22128, -22129, -22129, -22129, -22129, -22130, -22127, -22128, -22129, -22128, -22128, -22130, -22131, -22128, -22131, -22131, -22128, -22128, -22132, -22130, -22125, -22128, -22129, -22126, -22128, -22130, -22133, -22132, -22131, -22132, -22130, -22131, -22128, -22129, -22132, -22127, -22129, -22129, -22129, -22132, -22130, -22127, -22129, -22131, -22127, -22128, -22131, -22128, -22128, -22130, -22129, -22130, -22129, -22128, -22133, -22128, -22129, -22133, -22131, -22130, -22128, -22131, -22130, -22128, -22132, -22132, -22129, -22127, -22129, -22132, -22130, -22132, -22133, -22128, -22129, -22130, -22129, -22130, -22128, -22129, -22130, -22131, -22130, -22128, -22129, -22130, -22129, -22129]}
Package: python-excel2json
python_excel2jsonA simple way to parse an excel file and get the json that you want.Installpip install python_excel2jsonDependenciesxlrdUsagefrom python_excel2json import parse_excel_to_json

# Step 1: Define the format of your excel that you want to parse.

excel_sheets_format = {
    'start_row_sheet_parsing': 1,
    'start_column_sheet_parsing': 0,
    'sheet_formats': [
        {
            'sheet_index': 0,
            'column_names': [
                {
                    'name': 'name1',
                    'type': 'str'
                },
                {
                    'name': 'name2',
                    'type': 'str'
                },
                {
                    'name': 'name3',
                    'type': 'str'
                },
                {
                    'name': 'name4',
                    'type': 'float'
                }
            ],
            'is_ordered': True
        },
        {
            'sheet_index': 1,
            'column_names': [
                {
                    'name': 'name1',
                    'type': 'str'
                },
                {
                    'name': 'name2',
                    'type': 'str'
                },
                {
                    'name': 'name3',
                    'type': 'str'
                },
                {
                    'name': 'name4',
                    'type': 'float'
                }
            ],
            'is_ordered': True,
            'start_row_sheet_parsing': 3,
            'start_column_sheet_parsing': 5
        }
    ]
}

# Step 2: Define your excel file input. Using 'xlrd' it can be from two ways:

file = '/my/path/my-file.xlsx'
result = parse_excel_to_json(excel_sheets_format, filename=file)

file = your-excel-content
result = parse_excel_to_json(excel_sheets_format, file_contents=file)

# Step 3: Obtain your specific json result.

[
    {
        'sheet_index': 0,
        'results': [
            {
                'name1': 'value',
                'name2': 'value',
                'name3': 'value'
            },
            ...
        ]
    },
    {
        'sheet_index': 1,
        'results': [
            {
                'name1': 'value',
                'name2': 'value',
                'name3': 'value',
                'name4': 'value'
            },
            ...
        ]
    }
]LicenseMIT
Package: python-exemplary
ExemplaryA tool which provides extremely simple way to generate markdown documentation
from actual source code examples!RequirementsThe requirements for using this package are:Python (>= 3.8).Installation GuideInstall the package as you would any other, usingpip:>pipinstallpython-exemplary# or use `pipx` for virtual-env isolation>pipxinstallpython-exemplaryCheck if it worked by running:>exemplary--helpUsage GuideUsingexemplaryis really easy. Upon installing the package, now a program calledexemplaryshould be
available to run.exemplaryworks by reading your source-code; finding what must becomments; and wrapping the documents by
the specifiedprocessors.But why use words when examples do the trick?Take for example the following Python script:# myscript.pydefmain():# @start md# # Exemplary Example!## First when you want to add 1 to a number, you gotta start with a number.# Let's create a number-containing variable called "num"# @end# @start pynum=1# @end# @start md# And now let's just "+ 1" it, saving the result to "result".# @end# @start fence {"lang": "python"}result=num+1# @end# @start md# Fantastic! Now let's print the result to see how we did# @end# @start pyprint(result)# @endif__name__=="__main__":main()Let's break it down:@start- Those signify the start of a block to be processed. Themd/pysignify which processor will handle the text-segment.  There are currently 3 processors:md/markdown- Strips the comment pattern (in this case#) and simply insert the block content as is.fence- A classic markdown fence. The language is determined in the following arguments.py/python- A shortcut for Python fence-blocks.@endsignify the end of a block...And everything else in the middle,isthe aforementioned blocks.By running the command:>exemplarygeneratemyscript.pyThe output of the generated Markdown will be printed on screen:# Exemplary Example!

First when you want to add 1 to a number, you gotta start with a number.
Let's create a number-containing variable called "num"

``` python
num = 1

```

And now let's just "+ 1" it, saving the result to "result".

``` python
result = num + 1

```

Fantastic! Now let's print the result to see how we did

``` python
print(result)

```...And that's it. Nothing else to it. Have fun documenting!
Package: python-explorer
Python ExplorerA Python environment exploration interface.Written 100% in Python and renders in your browser usingDash.An online demo version can be accessed here:python-explorer demo.InstallInstall with pip into your current environment.> pip install python-explorerTo open and run the interface from the command line interface, typepython-explorer. This will launch the interface in your default browser. To terminate the session, press Ctrl+C while in the command prompt.> python-explorer
Exploring: Python Explorer started on 'http://127.0.0.1:8080/
Exploring: Number of threads: 8
Exploring: Press Ctrl+C to terminateAccess help features and other options with the --help option.> python-explorer --help
Usage: python-explorer [OPTIONS]

  Launch Python Explorer in browser.

Options:
  -h, --host TEXT        The interface to bind to.  [default: 127.0.0.1]
  -p, --port TEXT        The port to bind to.  [default: 8080]
  -t, --threads INTEGER  Number of waitress threads.  [default: 8]
  --help                 Show this message and exit.Other ResourcesSource Code:github.com/nelsonseth/python-explorerDocumentation:Github README