Saravanan666/pypi-org huggingface dataset:
Package: ducoapi
Official DUCO module for Python 3To build your own Duino-Coin apps we've created Duino-Coin API for Python 3.Created by Connorhess, maintained by Alicia426Getting StartedimportducoapiInitialize the connection to the serverapi_connection=ducoapi.api_actions()#creates the api connection instanceThe next step is to Login/RegisterNote: login and register do not require you to init but they close the connection after useLoginapi_connection.login(username="username",password="password")Registerapi_connection.register(username="username",password="password",email="user@example.com")FunctionsThese functions require user being loged-in.BalanceGets the current balance of the logged-in userapi_connection.balance()# takes no argsTransferTransfers Duco from logged-in user to the specified usernameapi_connection.transfer(recipient_username='test_user1',amount=1)reset passwordResets the password of the logged-in userapi_connection.reset_pass(old_password='123',new_password='abc')Get Latests TransactionsGet the latests transactionsapi_connection.getTransactions(7)# 7 is the number of transactions to get# returns JSONOther FunctionsUse of this functions does not require being loged-in.Get Duco Pricereturns the current Duco price as a float>>>ducoapi.get_duco_price()0.01249Duco price update timerstarts a timer that updates the price at a specified interval in seconds (default is 15)>>>ducoapi.start_duco_price_timer(interval=5)# start the timer that updates the price every 5 seconds>>>ducoapi.duco_price# you can get the updated price from a global variable <duco_price>0.01249Example API scriptimportducoapiapi_connection=ducoapi.api_actions()api_connection.login(username='YourUsername',password='YourPassword')current_balance=api_connection.balance()print(current_balance)api_connection.close()
Package: duco.ducobox
DucoBoxScript to monitor a Duco ventilation system.InstallationEvery release is uploaded to pip so it can be installed simply by using pip.# Python2pip2installduco.ducobox# Python3pip3installduco.ducoboxUsageAfter installation, the python module is availableas executable, to launch from terminal:ducobox--helpas python module, to launch from terminal:python-mduco.ducobox--helpas python module, to import in your script:importduco.ducoboxasducoStored configurationThe network configuration of your setup is stored in an ini-file. If the network configuration file is not found,
it is created.The script first tries to find all of the nodes in the network, by executing thenetworkcommand. It creates
objects for all of the found nodes. If nodes are found, the network configuration is saved to the provided
network configuration file.The network configuration file gives an overview of all the nodes with their specific parameters. These fields
can be adapted for each node:name: convenience name for the node (any string)blacklist: flag to blacklist (don’t use this node) from the network (True, or False)The rest of the fields should not be adapted outside the script.Logging dataThe script can log the sampled data to a database.InfluxDBData can be logged to an influxDB server, by passing a configuration file to the–influxdboption of the script.Format of this configuration file through an example:[InfluxDB]url=localhostport=8086user=rootpassword=rootdatabase=ducobox-exampleOther databasesThe script is setup in a generic way, so adding more kinds of databases should be easy.HintsSerial cable detailsTODO: provide serial cable detailsAllowing non-root user to access serial port (Ubuntu, Linux)Add user to dialout group:adduser<username>dialoutUse udev to allow users of dialout group to serial deviceContent for /etc/udev/rules.d/50-ttyusb.rulesSUBSYSTEM=="tty",KERNEL=="ttyUSB0",GROUP="dialout",MODE="0660"RebootrebootInfluxDB and GrafanaThe script was in first place designed to log sample data to an InfluxDB server. Grafana can
be used as a frontend to create views on the InfluxDB data.Issues and new FeaturesIn case you have any problems with usage of the plugin, please open an issue
on GitHub. Provide as many valid information as possible, as this will help us
to resolve Issues faster. We would also like to hear your suggestions about new
features which would help your Continuous Integration run better.ContributeThere is a Contribution guide available if you would like to get involved in
development of the plugin. We encourage anyone to contribute to our repository.
Missing a feature or node, but you’re not sure how to start with it? Create an issue.
Package: ducolib
DUCOlib: A friendly Duino-Coin Python Library.DUCOlib strives to be the most accesible miner and mining library forDuino-Coinwithin the Python ecosystem.Written in pure Python,ducoliblets us implement Duino-Coin mining in an easy and straightforward way.Installation:Simply runpip install ducolib.If you would like to install manually, please clone this repository,
then runpython setup.py install.This module has no install dependencies and is made to run with the Python standard library.Usage:DUCOlib is friendly for users and developer, it can be imported as any other python module,
or used to mine through a simple CLI.As a library:Let's start with an example:importducolibimporttime# Parameters for constructor:   Username   Diff, Threads, rig name.workers=ducolib.MinerCrewChief('Alicia426',True,'auto','myrig')workers.start_mining()# Starts all mining threads.time.sleep(30)# Mining for 30 secondsworkers.stop_mining()# Stops all threads.As we can see, theMinerCrewChiefclass orchestrates all mining, this is done
through theMinerclass.As a CLI Miner:As a minerducolibtakes 1 mandatory argument, theusernamelike so:ducolib Alicia426, any other arguments are optional.The full list of arguments, in order:Username - DUCO username, required.Mining Difficulty -easyfor lower difficulty,netfor network difficulty. Optional, defaults to Network.Threads - Number of desired threads, either a number orautowhich mines on all threads. Optional, defaults toauto.Rig name - Mining rig name, Optional, defaults toDucolib.Session duration - Mining session length in hours, Optional, defaults to 8 hours.Some command exammples:ducolib Alicia426 easy auto MyRig 24ducolib Alicia426 net 1You will not see any console output, that is by design, however
the log fileducolib.logshould be present in your working directory.It might look a bit like this:2021-03-31 00:25:44,839 -> INFO :: Mining DUCO for Alicia426 with Glukhov Miner :)
2021-03-31 00:25:44,839 -> INFO :: Using Lower Mining Difficulty: True. On rig: Yagentci
2021-03-31 00:25:44,839 -> INFO :: No previously running threads, OK!
2021-03-31 00:25:44,845 -> INFO :: Mining Started on Thread 0!
2021-03-31 00:25:44,845 -> INFO :: No previously running threads, OK!
2021-03-31 00:25:44,848 -> INFO :: Mining Started on Thread 1!
2021-03-31 00:25:45,652 -> INFO :: Server is on version: 2.3
2021-03-31 00:25:45,661 -> INFO :: Server is on version: 2.3
2021-03-31 00:26:02,964 -> INFO :: Accepted share: 2948235 Difficulty: 30000
2021-03-31 00:26:02,972 -> INFO :: Accepted share: 2914617 Difficulty: 30000
2021-03-31 00:26:05,652 -> INFO :: Accepted share: 508330 Difficulty: 9583
2021-03-31 00:26:05,702 -> INFO :: Accepted share: 439376 Difficulty: 9585
2021-03-31 00:26:07,553 -> INFO :: Accepted share: 376336 Difficulty: 14300
2021-03-31 00:26:09,142 -> INFO :: Accepted share: 852332 Difficulty: 14430
2021-03-31 00:26:09,602 -> INFO :: Accepted share: 5410 Difficulty: 19445Changelog:Started project.Tested PyPI packaging.Added way to check in on miners.Built CLI.Filled in documentation.Fixed major disconnect bug.Updated documentation.Added github link for PyPI.
Package: duConsumer
依赖pyhessian，bitstring示例代码from dubbo import DubboConsumer


def print_hi(consumer):
    req = consumer.queryCusStatis([("Lcom/weimob/o2o/wecom/data/api/interfaces/query/request/CusStatisRequest;",
                                    {"corpid": 1, "dateRangeType": 3})])
    print(f'req: {req!r}')
    for dto in req.responseVo.data.cusStatisDayDtos:
        print(f'dto: {dto!r}')


if __name__ == '__main__':
    consumer = DubboConsumer("10.11.32.251:2181", "com.weimob.o2o.wecom.data.api.interfaces.query.QueryCusApi")
    print_hi(consumer)具体参照测main.py，目前支持常用的dubbo协议。
Package: duconv
DUConvA Python3 Module that helps convert digital data units such as Bytes, KB, MB, GB, and TB.This module can be run from the cli to help make fast data conversion.InstallationInstall with pip:To use as a module or a cli application you can create a virtual environment and installDUConv via pip (Not recommended to be install systemwide).pip install duconvInstall with pipx:If the intended use is only as a cli application, run:pipx install duconvUsageAs a Modulefromduconvimportbytesconvertfromduconvimportconvertbytesconvert.bytes_converter(b)bytesconvert.data_to_bytes(d,un)convert.to_kb(d,un)convert.to_mb(d,un)convert.to_gb(d,un)convert.to_tb(d,un)b:anintegerorafloatd:anintegerorafloatun:astringofonecharacterrepresentingadataunitAs a cli ApplicationFrom the cli run:duconv -b VALduconv -d VAL [k|m|g|t]duconv [-kmgt] VAL [k|m|g|t]duconv-b5000duconv-d5000kduconv-m5000kLicenseThis project is licensed under the terms of the MIT license.
Package: duct
duct.pyDuct is a library for running child processes. Duct makes it easy to
build pipelines and redirect IO like a shell. At the same time, Duct
helps you write correct, portable code: whitespace is never significant,
errors from child processes get reported by default, and a variety ofgotchas, bugs, and platform
inconsistenciesare handled for you the Right Way™.DocumentationPyPI packagethe same library, in RustExamplesRun a command without capturing any output. Here "hi" is printed directly to
the terminal:>>>fromductimportcmd>>>cmd("echo","hi").run()hiOutput(status=0,stdout=None,stderr=None)Capture the standard output of a command. Here "hi" is returned as a string:>>>cmd("echo","hi").read()'hi'Capture the standard output of a pipeline:>>>cmd("echo","hi").pipe(cmd("sed","s/i/o/")).read()'ho'Merge standard error into standard output and read both incrementally:>>>big_cmd=cmd("bash","-c","echo out && echo err 1>&2")>>>reader=big_cmd.stderr_to_stdout().reader()>>>withreader:...reader.readlines()[b'out\n',b'err\n']Children that exit with a non-zero status raise an exception by default:>>>cmd("false").run()Traceback(mostrecentcalllast):...duct.StatusError:Expressioncmd('false')returnednon-zeroexitstatus:Output(status=1,stdout=None,stderr=None)>>>cmd("false").unchecked().run()Output(status=1,stdout=None,stderr=None)
Package: ductile-ui
ductile-uiA library provides declarative UI fordiscord.py.FeaturesDeclarative UI, inspired byReact.Component-oriented with StateFully typedInstallationPython3.10 or higher is requireddiscord.py^2.2.0 is required; any compatibility under 2.1.x or 1.x is not guaranteedUsing the latest stable release of discord.py is recommendedpipinstallductile-uiUsage/ExamplesYou can define component as return value ofView.render().
To store state, useState.# This example requires the 'message_content' privileged intent to function.importrandomimportdiscordfromdiscord.extimportcommandsfromductileimportState,View,ViewObjectfromductile.controllerimportMessageableControllerfromductile.uiimportButtonclassBot(commands.Bot):def__init__(self)->None:super().__init__(command_prefix="!",intents=discord.Intents.all())asyncdefon_ready(self)->None:print(f"Logged in as{self.user}")print("Ready!")classCounterView(View):def__init__(self)->None:super().__init__()self.count=State(0,self)defrender(self)->ViewObject:e=discord.Embed(title="Counter",description=f"Count:{self.count.get_state()}")asyncdefhandle_increment(interaction:discord.Interaction)->None:awaitinteraction.response.defer()self.count.set_state(lambdax:x+1)asyncdefhandle_decrement(interaction:discord.Interaction)->None:awaitinteraction.response.defer()self.count.set_state(lambdax:x-1)asyncdefstop(interaction:discord.Interaction)->None:awaitinteraction.response.defer()self.stop()# Define UI using ViewObjectreturnViewObject(embeds=[e],components=[Button("+1",style={"color":"blurple","row":0},on_click=handle_increment),Button("-1",style={"color":"blurple","row":0},on_click=handle_decrement),Button("random",style={"color":"green","row":1},# if you passed synchronous function to Button.on_click,# library automatically calls `await interaction.response.defer()`.on_click=lambda_:self.count.set_state(random.randint(0,100)),),Button("stop",style={"color":"red","row":1},on_click=stop),],)bot=Bot()@bot.command(name="counter")asyncdefsend_counter(ctx:commands.Context)->None:controller=MessageableController(CounterView(),messageable=ctx.channel)awaitcontroller.send()timed_out,states=awaitcontroller.wait()awaitctx.send(f"Timed out:{timed_out}\nCount:{states['count']}")bot.run("MY_COOL_BOT_TOKEN")
Package: ducts
DUCTS: DUplex Communication and Transactional Streaming Web FrameworkSAMPLEInstallYou can install this package by pippip3 install ductsstart and stop server and other backend processesYou can start ducts server as well as other backends with following commands.python -m ducts server start [-c configfile]
    python -m ducts asr start [-c configfile]You can also stop them.python -m ducts server stop [-c configfile]
    python -m ducts asr stop [-c configfile]In configfile, you can define followings:[ducts.common_config]

    # root directory of all local path (<class 'pathlib.Path'>)
    # ducts_home = .

    # filepath to store PID (<class 'str'>)
    # pidpath = {ducts_home}/.pid/{module}_{service}.pidThis is the README file for the project.The file should use UTF-8 encoding and can be written usingreStructuredTextormarkdownwith the appropriatekey set. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.
Package: ductworks
Ductworks is an IPC library for Python, similar to the Pipe object from the multiprocessing library. Like Pipe,
ductworks exposes a MessageDuct API with very simple send and receive semantics for end users (no worrying about
streams, each send call corresponds to one recv call), while easily allowing for more flexible usage like having
a communication channel between a parent python process and a python process in a child subprocess (separated by
both fork(2) and exec(2)). As well ductworks allows users to freely choose their serialization library (and uses
JSON by default) and uses regular BSD sockets; this makes connecting up programs in different languages (or even on
different systems) relatively straightforward. Ductworks aims to make it simple to get socket pairs, when inheriting
a anonymous socket pair is difficult or outright infeasible, and to make IPC easier and less stressful.Read the docs at:http://ductworks.readthedocs.io/en/latest/
Package: ducut
电商分词安装pip install ducut使用方式fromducutimportDuCutresource_path='<自定义的资源文件>'dc=DuCut(resource_path)line='万斯 板鞋白红'cu=dc.cut_query(line)print(f"brand:{cu.brand},series:{cu.series},color:{cu.color},category:{cu.category},word:{cu.word},proper:{cu.proper}")# 加载自定义词典dc.add_word_file("<词典路径>")# 加载自定义单词dc.add_word('川久保玲')思路语义实体：主要用于一些系统尚未识别的实体词，干预后，该词的切分总是能保持一致，不受其所在的上下文影响。语义切分：用于指定在特定上下文中，短语的切分方式，而不影响该短语在其他上下文中的切分方式参考资料OpenSearch电商分词
Package: dudac
Duda Client ManagerDudaC is a command line interface for the Duda I/O web services framework ‘Duda’,
it aims to to manage Duda web services in a easy manner.InstallInstalldudacin you home:$ python setup.py install –userAdd$HOME/.local/binto your$PATHadding the following line to
your.bashrc:export PATH=”$HOME/.local/bin:$PATH”Open a new terminal or source.bashrcand you’ll have available thedudaccommand.UsageGet the development environment:# dudac -sLaunch your web service:# dudac -w PATH_TO_WEBSERVICE_SOURCE_CODEHit your web server# firefoxhttp://localhost:2001ExamplesIf you want to see some Duda web services examples clone the following
repository:git clonehttps://github.com/monkey/duda-examples.gitThen you can do something like:# dudac -w /path/to/duda-examples/001_hello_worldAuthorEduardo Silva <edsiper@gmail.com>
Package: dudesec
DudeSecurity - PythonO projeto Dude tem como objetivo a criaÃ§Ã£o de uma library para python ligado a seguranÃ§a cibernÃ©tica e monitoramento de servidores e estaÃ§Ãµes datrabalho.
Neste repositÃ³rio, iremos abranger os seguintes objetivos:SeguranÃ§a e monitoramento de redes.SeguranÃ§a e monitoramento de servidores.SeguranÃ§a e monitoramento de aplicaÃ§Ãµes.SeguranÃ§a de estaÃ§Ãµes de trabalho e computadores pessoais.Para acompanhar a library, usamos a seguinte lÃ³gica: Na branch master, estarÃ¡ presente a versÃ£o mais atual. Nas outras branchs, estarÃ£o disponibilizadas o cÃ³digo de acordo com a versÃ£o.Ferramentas presentes na versÃ£o atual:Scanner de portas abertas a partir de um range prÃ© definido.Monitoramento de aplicaÃ§Ãµes WEB atravÃ©s de webscrapping.Monitoramento de dominios.Monitoramento de aplicaÃ§Ãµes APIS.ImplementaÃ§Ã£o de WEBHOOK para atualizaÃ§Ãµes.CodificaÃ§Ã£o e decodificaÃ§Ã£o de textos usando base64.Varredura de portas para exploraÃ§Ã£o de vunerabilidades.Gerador de WorldList para ataques brute-force.Lembrando que, o repositÃ³rio estÃ¡ e sempre estarÃ¡ aberto a novas opiniÃµes
e ponto de vista. Portanto, ao requisitar alguma atualizaÃ§Ã£o lembre-se
que esta lib Ã© uma ajuda, nÃ£o um direito tenha educaÃ§Ã£o e simpatia.Ideias para possiveis atualizaÃ§Ãµes:Captura de tela de website por webscrappingComo instalarPara usar esta library com o Python Ã© bem simples, basta instala-la usando o gerenciador de pacotes pipy , com o seguinte comando:$pipinstalldudsecE apÃ³s isto, importa-lo desta maneira:import*fromdudesecNossa comunidade & documentaÃ§Ã£oComunidade:https://dudeproject.online
Package: dudraw
dudrawDescriptionRepository fordudraw, a fork ofstddraw from the Princeton Standard Libraries.Installationpip install dudrawDocumentationAPI Documentation:https://cs.du.edu/~intropython/dudraw/To build documentation:pip install pydoctor
make docsLicenseReleased under theGNU Public License version 3 (GPLv3)AuthorsOriginal Authors ofStdLib:Robert Sedgewick
Kevin WaynedudrawFork Additions by:Joseph Brooksbank
Ryan Dunagan
Declan Kahn
Eddy Rogers
Andrew Hannum
Mohammed Albow
Jeff Edgington
Package: dudu
Dudu is a dead easy todo list runs on your command line lets you simply get things done.Install$ pip install duduUsageShow help$ dudu --help
usage: dudu [-h] [-v] {add,delete,update,list,reset,done,undone} ...

positional arguments:
    {add,delete,update,list,reset,done,undone}

optional arguments:
    -h, --help            show this help message and exit
    -v, --version         show program's version number and exitAdd$ dudu add 'Hello World!'
$ dudu add 'Howdy you?'List$ dudu list
0 n 'Hello World!'
1 n 'Howdy you?'Done$ dudu done 1
$ dudu list
0 n 'Hello World!'
1 y 'Howdy you?'Undone$ dudu undone 1
$ dudu list
0 n 'Hello World!'
1 n 'Howdy you?'Update$ dudu update 1 'How are you doing today?'
$ dudu list
0 n 'Hello World!'
1 n 'How are you doing today?'Delete$ dudu delete 0
$ dudu list
0 n 'How are you doing today?'Reset$ dudu reset
$ dudu list
...Enjoy!LicenseCopyright (c) 2012 Kadir Pekel.Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the ‘Software’), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: duedge-cli
This package provides a unified command line interface to DuEdge Services&Functions.The duedge-cli package works on Python versions:Linux:2.7.x and greater3.7.x and greaterWindows:3.7.x and greaterInstallationInstall globally:$ sudo pip install duedge-clior for your user:$ pip install --user duedge-cliIf you have the duedge-cli installed and want to upgrade to the latest version
you can run:$ pip install --upgrade duedge-cliYou have the duedge-cli directory structure on your workstation, you can just run:$ cd <path_to_duedge-cli>
$ python setup.py install
Package: duedil
DueDil API v3 |pypi| |build-status| |coverage-status| |waffle| |docs| |qc|=====================================================================This is a Python implementation of the `DueDil v3 API`_, see the generated`documentation <http://duedilv3.readthedocs.org/en/latest/>`_ for more information... |build-status| image:: https://travis-ci.org/founders4schools/duedilv3.svg?branch=master:target: https://travis-ci.org/founders4schools/duedilv3:alt: Build.. |coverage-status| image:: https://codecov.io/gh/founders4schools/duedilv3/branch/master/graph/badge.svg:target: https://codecov.io/gh/founders4schools/duedilv3:alt: Coverage.. |pypi| image:: https://badge.fury.io/py/duedil.svg:target: http://badge.fury.io/py/duedil:alt: PyPi Status.. |waffle| image:: https://badge.waffle.io/founders4schools/duedilv3.png?label=ready&title=Ready:target: https://waffle.io/founders4schools/duedilv3:alt: 'Stories in Ready'.. |qc| image:: https://www.quantifiedcode.com/api/v1/project/d185f4258c9a4cfa8612b17cffd012c9/badge.svg:target: https://www.quantifiedcode.com/app/project/d185f4258c9a4cfa8612b17cffd012c9:alt: Code issues.. |docs| image:: https://readthedocs.org/projects/duedilv3/badge/?version=latest:target: https://readthedocs.org/projects/duedilv3/?badge=latest:alt: Documentation Status.. _DueDil v3 API: https://developer.duedil.com/.. :changelog:History=======0.4.6 (2015/10/12)------------------- Added rate limiting to the client0.4.5 (2015/10/01)------------------- Added container magic methods to Resource class0.4.4 (2015/09/30)----------------- Merged some changes from a fork, updated tests to match- Refactored the api clients, restructured the resources to include all API endpoints- Added Search resources- Resources now work by passing an API_KEY through to them or settings the environment variable DUEDIL_API_KEY- Resources need filling out and fixing together with related resources- Skeletons of the International API is there & the lite API0.3 (2015/02/27)----------------- Company and Directors searches are returning a result set instead of a list- Change in ordering of search results0.2 (2014/12/10)----------------- add v3 lite api0.1 (2014/12/09)----------------- Initial version on PyPI - only v3pro api partially implemented