Saravanan666/pypi-org huggingface dataset:
Package: pythonFTP
pythonFTP地址CodegithubPypi: pythonFTP介绍pythonFTP是一个用来在Linux（Ubuntu）上管理ftp服务器文件的工具。它使用python实现，基于经典的libftp模块，保留了该模块的所有原有功能。它实现的核心功能包括：ftp服务器上传/下载文件/文件夹，在ftp服务器上创建文件夹，删除ftp服务器上的文件/文件夹。我们对ftp的文件夹实现递归处理，确保可以实现便利的传输和管理ftp服务器上的文件和文件夹。环境Ubuntu16.04Python3.7Serv-U下载pipinstallpythonFTP使用模块导入frompythonFTP.FTPToolsimportFTPTools对象建立obj=FTPTools('ip','username','password')核心功能实现run()参数1参数2参数3上传文件夹ftp文件夹路径本地文件夹路径'upload folder'上传文件ftp文件夹路径本地文件+文件名'upload file'下载文件夹ftp文件夹路径本地文件夹路径'download folder'下载文件ftp文件路径+文件名本地文件夹路径'download file'删除文件夹ftp文件夹路径'''delete folder'删除文件ftp文件路径+文件名'''delete file'创建文件夹ftp文件夹路径'''create folder'举例localPath='/media/lwt/qysdcj/'ftpPath='/private/lwt/qysdcj/'obj.run(ftpPath,localPath,'upload folder')# 上传一个文件localFile='/media/lwt/qysdcj/GT_136.tif'ftpPath='/private/lwt/qysdcj/'obj.run(ftpPath,localFile,'upload file')# 删除文件i=136ftpFile='/private/lwt/qysdcj/GT_'+str(i)+'.tif'obj.run(ftpFile,'','delete file')# 删除文件夹ftpFolder='/private/lwt/qysdcj/'obj.run(ftpFolder,'','delete folder')# 下载文件ftpFile='/private/lwt/qysdcj/LR_1.tif'localPath='/media/lwt/qysdcj/01trainset/'obj.run(ftpFile,localPath,'download file')# 下载文件夹ftpPath='/private/lwt/qysdcj/'localPath='/media/lwt/qysdcj/01trainset/'obj.run(ftpPath,localPath,'download folder')# 创建文件夹ftpPath='/private/zengxinyang/qysdcj/'obj.run(ftpPath,'','create folder')相关项目libftp本项目在此项目的基础上进行了修改，并保留了原有的所有方法。您可以在pyFTP中使用以下命令，它包括原来模块中的所有功能。frompythonFTP.ftplib2importFTP负责人AsajuHuishi
Package: python-ftp-server
FTP server to transfer files between machines with zero configurationUsagepython3 -m pip install python-ftp-serverpython3 -m python_ftp_server -d "dirctory/to/share"will print:Localaddress:ftp://<IP>:60000
User:<USER>
Password:<PASSWORD>Copy and paste yourIP,USER,PASSWORD,PORTintoFileZilla(or any other FTP client):
Package: python-ftx-api
Python FTX API Sample CodeFTXis a cryptocurrency derivatives exchange.This is a wrapper around the FTX API as described onFTX, including all features the API provides using clear and readable objects, both for the REST  as the websocket API.An unofficial Python3 library to interact withFTX.COMandFTX.US.I am in no way affiliated with FTX, use at your own risk.If you think something is broken, something is missing or have any questions, please open anIssueGet Started and DocumentationIf you're new to FTX, use the following link tosave 5% on all of your trade fees.Register an account with FTX.Generate an API Key and assign relevant permissions.FTX API docsExample FTX rest APIExample FTX websocket APIInstallpip install python-ftx-apiUsageIf you are using an exchange from the US, or other TLD then make sure pass tld='us' when creating the client. Default tld='com'Change your API KEY and your SECRET KEY.Restful Api Sample CodefrompyftximportClientAPI="your-api-key"SECRET="your-secret-key"subaccount_name="your-subaccount_name"client=Client(API,SECRET,subaccount=subaccount_name)info=client.get_markets()print(info)Websocket Sample CodefrompyftximportThreadedWebsocketManagerdefon_read(event):print(event)API="your-api-key"SECRET="your-secret-key"subaccount_name="your-subaccount_name"wsm=ThreadedWebsocketManager(API,SECRET,subaccount=subaccount_name)wsm.start()# Un-auth subscribe - Public Channelsname='market_connection'wsm.start_socket(on_read,socket_name=name)wsm.subscribe(name,channel="ticker",op="subscribe",market="ETH-PERP")# Auth subscribe - [filled](https://docs.ftx.com/#fills-2)name='private_connection'wsm.start_socket(on_read,socket_name=name)wsm.login(socket_name=name)wsm.subscribe(name,channel="fills",op="subscribe",)# Auth subscribe -[orders](https://docs.ftx.com/#orders-2)ws_type='private_connection'wsm.start_socket(on_read,socket_name=ws_type)wsm.login(socket_name=ws_type)wsm.subscribe(ws_type,channel="orders",op="subscribe",)Websocket with argumentsfrompyftximportThreadedWebsocketManagerfromfunctoolsimportpartialAPI="your-api-key"SECRET="your-secret-key"subaccount_name="your-subaccount_name"defon_message(event,argument):msg="{}.event:{}".format(argument,event)print("on message: ",msg)wsm=ThreadedWebsocketManager(API,SECRET,subaccount=subaccount_name)wsm.start()# Un-auth subscribe - Public Channelssubaccount_name="Cuongitl"callback_with_arguments=partial(on_message,argument=subaccount_name)name='market_connection'wsm.start_socket(callback_with_arguments,socket_name=name)wsm.subscribe(name,channel="ticker",op="subscribe",market="ETH-PERP")Donate / SponsorI develop and maintain this package on my own for free in my spare time. Donations are greatly appreciated. If you prefer to donate any other currency please contact me.BTC:3LrqgdMbToh1mAD3sjhbv3oaEppXY7hkaeBTC:0x329a9F2b01aDA25F15eAE4C633d3bed8442c7BC6(BSC)USDT:0x329a9F2b01aDA25F15eAE4C633d3bed8442c7BC6(BSC)FTT:0x329a9F2b01aDA25F15eAE4C633d3bed8442c7BC6(ERC-20)CommunitiesTelegram:Python FTX APIRelease NotesThe release notes can be foundhere.
Package: python-fuelclient
========================Team and repository tags========================.. image:: http://governance.openstack.org/badges/python-fuelclient.svg:target: http://governance.openstack.org/reference/tags/index.html.. Change things from this point onpython-fuelclient=================python-fuelclient provides a CLI tool and a Python API wrapper for interactingwith `Fuel <https://github.com/stackforge/fuel-web>`_.-----------------Project resources-----------------Project status, bugs, and blueprints are tracked on Launchpad:https://launchpad.net/fuelDevelopment documentation is hosted here:https://docs.fuel-infra.org/fuel-devUser guide can be found here:http://docs.mirantis.comAny additional information can be found on the Fuel's project wikihttps://wiki.openstack.org/wiki/FuelAnyone wishing to contribute to python-fuelclient should follow the generalOpenStack process. A good reference for it can be found here:https://wiki.openstack.org/wiki/How_To_Contributehttp://docs.openstack.org/infra/manual/developers.html
Package: python-functionsclient
Functions API aiohttp-based Python clientWhat is IronFunctions?IronFunctionsis an open source serverless platform, or as we like to refer to it,
Functions as a Service (FaaS) platform that you can run anywhere.IronFunctions Python API Usage ExamplesAppsRoutesTestingIn order to run tests, set the corresponding environment variables:PYTHONASYNCIODEBUG=1
FUNCTIONS_API_URL = http://<functions-host>:<functions-port>/v1Style checkstox-epep8Integration teststox-epy35Docs teststox-edocs
Package: python-fundb
FunDBFunDBis Hybrid Row-and-Document Oriented datastore leveraging SQL/RDBMS database: SQLite, MySQL, MariaDB, PostgresqlFunDB is both RDMBS + Document Oriented together.It supports, regular SQL query along with Document Oriented and Key Value store.Engine:JSONSQLiteMariadbPostgreSQLMySQLInstallpipinstallpython-fundbUsagefromfundbimportfundb# Open the db# or in memory > fun = fundb()fun=fundb("./my.db")# Select a collection.# Collection will be created automatically# or explicitely > test = fun.select('test')test=fun.test# Get total entriesprint(test.size)# Insert an entry. It returns fundb#Documententry=test.insert({"name":"Fun","type":"DB","version":"1.0.0"})# Retrieve document by _id_id="9c5e5fbd05544700995c5fa3ca3ef214"entry=test.get(_id)# Access propertiesentry.name# -> funentry.type# -> DBentry.version# -> 1.0.0# Update a fieldentry.update(version="1.0.1")# ...orentry.update({"version":"1.0.1"})#entry.version# -> 1.0.1# Delete entryentry.delete()# Searchresults=test.find({"version:$gt":"1.0.0"})forentryinresults:print(entry.name)~ API ~Databasefundb#selectTo select a collection in the databasefun=fundb()users=fun.select("users")## orusers=fun.users#collectionsList all the collections in the databasefun=fundb()users=fun.select("users")## orusers=fun.users##D
Package: python_funtranslation
python_funtranslationA Python wrapper around the Fun Translation API.Installation$pipinstallpython_funtranslationUsageTODOContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licensepython_funtranslationwas created by Yishu Zhang. It is licensed under the terms of the MIT license.Creditspython_funtranslationwas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.
Package: python-fusiontables
OVERVIEW:The python Fusion Tables Client library helps you connect and run queries on
your tables in Fusion Tables.You can select 2 methods of authentication: OAuth or Client Login.
The python-oauth2 library is used for OAuth.Two helper classes have been included in this library to make coding
easier: CSVImporter and SQL.CSVImporter allows you to create a new table from an existing CSV file.SQL builds SQL statements for you, in case you don’t want to fully type out
“SELECT …” or “INSERT …” every time.NoteThis is a fork of the original python fusion tables client available athttp://code.google.com/p/fusion-tables-client-python/, forked it to package it for use with pip & pypi.DEPENDENCIES:python-oauth2 library:http://github.com/simplegeo/python-oauth2python-oauth2 dependency, httplib2:http://code.google.com/p/httplib2/
Package: pythong
Author:David Gay <oddshocks@riseup.net>Set up a minimal, yet comfortable structure for a Python project.FeaturesCreate a standard Python project directory structureGet help creating your setup.py file, or
choose to write it yourself by passing the--snapcommandClear your project of messy build files (build/dist/egg/pyc)
with the--washcommandGenerate a distribute_setup.py file to use a setup.py file
with distributeUse a tree-style menu to set your PyPI classifiers in your
setup.py fileExample UsageCreate a new project like so:$ pythong mynewprojectOr, for a quicker setup…$ pythong --snapIncluding the project name in the command is optional.You canwashyour pythong of messy build files:$ pythong --washPythong will help you add classifiers to your setup.py
during project creation, or after the fact with thelabelcommand:$ pythong --labelFiles and directories can be added to the manifest file withpin:$ pythong --pin [FILE_OR_DIRECTORY]A full list of options can be seen with:$ pythong --helpGet PythongYou can install the latest release of Pythong fromPyPIwith pip:$ pip install pythongYou can also get the source from PyPI orGitHub.
Contributions are welcome! Yay, software freedom!Licensepythong is released under the GNU GPLv3+.ContributorsFeel free to add your name.David Gay  <oddshocks@riseup.net>Ryan Scott Brown  <ryansb@csh.rit.edu>Ralph Bean  <rbean@redhat.com>
Package: python-games
python-gamesInstalling# Linux/macOS
python3 -m pip install -U python-games

# Windows
py -3 -m pip install -U python-games

# Github
pip install git+https://github.com/kevys/python-games.git@mainQuick Exampleimport games

c = input("Choose rock, paper or scissor > ")

output = games.rps(c)

if output[2] is False:
    print(f'Loser, You picked {output[0]}, AI picked {output[1]}')
elif output[2] is True:
    print(f'Winner, You picked {output[0]}, AI picked {output[1]}')
elif output[2] == None:
    print(f"{output[1]}, {output[0]}")
Package: python-gammu
python-gammuPython bindings for theGammu library.Homepage<https://wammu.eu/python-gammu/>LicenseCopyright (C) 2003 - 2018 Michal CiharThis program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.InstallingYou can install in a usual way for Python modules using distutils, so usesetup.pywhich is placed in the top level directory:./setup.py build
sudo ./setup.py installYou can also install it using pip installer:pip install python-gammuRequirementsTo compile python-gammu, you need Gammu development files (usually shipped aslibgammu-devorgammu-develin Linux distributions).The location of the libraries is discovered usingpkg-config,GAMMU_PATHenvironment variable and falls back to generic locations. In
case it does not work, either installpkg-configor setGAMMU_PATH.On Linux something like this should work:GAMMU_PATH=/opt/gammu python setup.py buildOn Windows:SET GAMMU_PATH="C:\Gammu"
python setup.py buildDocumentationPlease see included python documentation:>>> import gammu
>>> help(gammu)Alternatively you can use Sphinx to generate browsable version, which is
also available on-line at <https://wammu.eu/docs/manual/>.Feedback and bug reportsAny feedback is welcome, see <https://wammu.eu/support/> for information
how to contact developers.
Package: pythonGateway
Bitocredit python packagepython wrapper for Bitocredit APIusageinstall package using pippipinstallpythonGatewayand use package like this:frompythonGatewayimportBitocreditApibaseurl="https://bitocredit.com/api/";token="TOKEN";# fill your tokenApi=BitocreditApi(baseurl,token);res=Api.createWallet("wallet_id","network")# replace wallet_id with your wallet id and network typeprint(res)methodscreateWallettransactionChecktransactionRecoverytransactionFeetransactionExamplecreateWalletThis method used for creating wallet for userendpoint :https://bitocredit.com/api/create/wallet/{token}res=Api.createWallet("wallet_id","network")# replace wallet_id with your wallet id and network typeprint(res)transactionCheckThis method used for check a transaction is confirmed or notendpoint :https://bitocredit.com/api/transaction/check/{token}res=Api.transactionCheck("transaction_hash","wallet_address")# replace transaction_hash and wallet_address with your transaction hash and wallet addressprint(res)transactionRecoveryThis method used for check a transaction that is lost in blockchainendpoint :https://bitocredit.com/api/transaction/recovery/{token}res=Api.transactionRecovery("transaction_hash")# replace transaction_hash with your transaction hashprint(res)transactionFeeThis method used for check a transaction that is lost in blockchainendpoint :https://bitocredit.com/api/transaction/fee/{token}res=Api.transactionFee()print(res)transactionExamplePlease only use this api for test ! it's only an example to show how the server sends data to callback after payment confirmationendpoint :https://bitocredit.com/api/transaction/example/callbackres=Api.transactionExample("transaction_hash")# replace transaction_hash with your transaction hashprint(res)
Package: python-gc100
python-gc100=============This is a Python-based socket client for Global Cache GC100 digital I/O interfaceThe global cache GC100 features an array of digital inputs / IR outputs (switchable),serial ports, and solid state relays, accessible via a TCP interface.More info can be found at the manufaturer's website: https://www.globalcache.com/products/gc-100/python-gc100 provides a TCP client to interface with a GC100.Currently serial port communication and IR functions are not supported.Digital input (including notification mode) and changing relay state are supported.Usage-----Given a callback function>>> def callback_fn(state):>>>   print(state)Initialize the connection to the socket server>>> hostname = 'myserver'>>> port = 4998>>> gc = gc100.GC100SocketClient(hostname,port)Example, if you want to read and print the state of module address '4:1':>>> gc.read_input('4:1', callback_fn)Or turn the relay on at address '3:2', and confirm its new state:>>> gc.write_switch('3:2', 1, callback_fn)Turn it off again:>>> gc.write_switch('3:2', 0, callback_fn)If you want to subscribe to be notified (push) of state changes to digital input '4:3':>>> gc.subscribe_notify('4:3', callback_fn)Close the connection>>> gc.quit()Compatibility------------This module is only tested with Python 3.5.2, and will definitely not be compatible with python 2.xAuthor and License------------------This software is (c) 2017 David Grant <davegravy@gmail.com>This program is free software: you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free SoftwareFoundation, either version 3 of the License, or (at your option) any laterversion.GC100 is a trademark of Global Cache, with whom the author of this software is notaffiliated in any way other than using some of the their hardware
Package: python-gc-benchmark
python-gc-benchmarkThis is a Python Benchmark suite that focuses on Memory Usage. The scenarios have been chosen for memory intensive programs Intended for anyone that wants to analyse memory Usage of different Python versions.The suite supports Python 2, Python 3, Pypy 2 and Pypy 3.Implementation CriteriaThe benchmarks feature programs with large demands for memory and are mostly array intensive programs like scientific computing problems, some games and other general programs that are container intensive.The main metric considered is the Resident Set Size(RSS) which is the allocated memory for a program. This is chosen because;It is machine-independent. Though programs will use more memory on 64-bit machines than 32-bit machines.Stretches the memory manager as it puts a lot of pressure on it.LimitationsThe metrics on Resident Set Size seem to over report for multi-threaded programs. In the event that two threads share memory, the reported RSS comprises individual memory usage of this memory for each thread.Therefore this metric is unsuitable for Multiprocessing and multi-threaded programs.Future workAdd other useful commands.Add more Scientific benchmarks.Run the benchmarks from sourcegit clone http://gitlab.casa.cs.unb.ca/jnanjeky/python_gc_benchmark
cd python-gc-benchmark
python setup.py install

python-gc-benchmark  -o <filename> <benchmark>

# or:

python-gc-benchmark  -o <filename> allDownload from PyPIpip install python-gc-benchmark
python-gc-benchmark -o <filename> <benchmark>

# or:

python-gc-benchmark -o <filename> allReferenceshttps://github.com/nuprl/retic_performancehttps://github.com/python/pyperformancehttp://www.marinamele.com/7-tips-to-time-python-scripts-and-control-memory-and-cpu-usage
Package: python-gcm
python-gcm======================.. image:: https://badges.gitter.im/Join%20Chat.svg:alt: Join the chat at https://gitter.im/geeknam/python-gcm:target: https://gitter.im/geeknam/python-gcm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge.. image:: https://img.shields.io/pypi/v/python-gcm.svg:target: https://pypi.python.org/pypi/python-gcm.. image:: https://img.shields.io/pypi/dm/python-gcm.svg:target: https://pypi.python.org/pypi/python-gcm.. image:: https://secure.travis-ci.org/geeknam/python-gcm.png?branch=master:alt: Build Status:target: http://travis-ci.org/geeknam/python-gcm.. image:: https://landscape.io/github/geeknam/python-gcm/master/landscape.png:target: https://landscape.io/github/geeknam/python-gcm/master:alt: Code Health.. image:: https://coveralls.io/repos/geeknam/python-gcm/badge.svg?branch=master:target: https://coveralls.io/r/geeknam/python-gcm.. image:: https://img.shields.io/gratipay/geeknam.svg:target: https://gratipay.com/geeknam/Python client for Google Cloud Messaging for Android (GCM)Installation-------------.. code-block:: bashpip install python-gcmFeatures------------* Supports multicast message* Resend messages using exponential back-off* Proxy support* Easily handle errors* Uses `requests` from version > 0.2* `Topic Messaging  <https://developers.google.com/cloud-messaging/topic-messaging>`__* TCP connection pooling and Keep-Alive when passing an explict requests.Session object to the used GCM request callUsage------------Read about `Google Cloud Messaging <https://developers.google.com/cloud-messaging>`__.. code-block:: pythonfrom gcm import GCMgcm = GCM(API_KEY)data = {'param1': 'value1', 'param2': 'value2'}# Downstream message using JSON requestreg_ids = ['token1', 'token2', 'token3']response = gcm.json_request(registration_ids=reg_ids, data=data)# Downstream message using JSON request with extra argumentsres = gcm.json_request(registration_ids=reg_ids, data=data,collapse_key='uptoyou', delay_while_idle=True, time_to_live=3600)# Topic Messagingtopic = 'topic name'gcm.send_topic_message(topic=topic, data=data)See `examples <examples>`_  directory for more usage details, including error handling.Contributing==========See `CONTRIBUTING.md <CONTRIBUTING.md>`_Licensing=======See `LICENSE <LICENSE>`_
Package: python-gcp-injections
pip install python-gcp-injectionsIf you want single line logging you can use standard logging withlogging.info("This is my log text"). But if you
would like to have som more context you use.fromgcpi.stackdriverlogimportget_loggerLOG=get_logger()my_dict_data={'test':1,'debug':2}LOG.info("This is my log")LOG.info(my_dict_data,param1='true',message="Invoice render timing")message is the text that will show up as summary in the log. My dict_data in this case
will show up under jsonPayload event, while the param1 will show up on the same level
as event.Djangoin settings.py addfromgcpi.stackdriverlogimportstackdriver_init_loggingstackdriver_init_logging()
Package: python-gdcm
Python-GDCMUnofficialGDCMpackages for Python 3 on Linux, Windows and MacOS (both Intel and Apple Silicon).Grassroots DiCoM is a C++ library forDICOMmedical files that can be wrapped for Python usingSWIG. It supports datasets encoded using native, JPEG, JPEG 2000, JPEG-LS, RLE and deflated transfer syntaxes. It also comes with Parts 3, 6 & 7 of the DICOM Standard as XML files.InstallationUsing pippipinstall-Upython-gdcmFrom sourceInstall dependenciesCompiler for you platform (GCC, Clang, MSVC)CMakeSWIGpatchelfwill also be needed on LinuxGitto get the source codeSetup environmentIf thecmakeorswigexecutables aren't in$PATH, either add them or createCMAKE_EXEandSWIG_EXEenvars:exportCMAKE_EXE="path/to/cmake/executable"exportSWIG_EXE="path/to/swig/executable"Clone sourcegitclone--recurse-submoduleshttps://github.com/tfmoraes/python-gdcmBuild and install# Note the trailing slash!pipinstallpython-gdcm/Test installed packagepython-c"import gdcm; print(gdcm.GDCM_VERSION)"If you get aModuleNotFoundError: No module named '_gdcm.gdcmswig'error then make sure your current working directory doesn't contain a_gdcmfolder.UsageReading a DICOM image fileimportgdcmreader=gdcm.ImageReader()reader.SetFileName("dicom_image_file.dcm")ret=reader.Read()ifnotret:print("It was not possible to read your DICOM file")Other ExamplesSee herehttps://github.com/malaterre/GDCM/tree/master/Examples/Python
Package: python-gdsii
python-gdsii is a library that can be used to read, create, modify and save
GDSII files. It supports both low-level record I/O and high level interface to
GDSII libraries (databases), structures, and elements.This package also includes scripts that can be used to convert binary GDS file
to a simple text format (gds2txt), YAML (gds2yaml), and from text fromat back
to GDSII (txt2gds).
Package: python-gearbox
Python library for design of spur and helical gears transmissionsInstallthe project is onpypiserver for installation use:pip install python-gearboxfor manual installation download the last release from:https://pypi.python.org/pypi/python-gearboxpython setup.py installmake shure you have installed all dependencies “jinja2, numpy and scipy”FeaturesGear stresses calculation using AGMA-2101 D04 and ISO-6336 standardsExport 2D and 3D one tooth geometrical models, toMATLAB/COMSOLfor spur and helical gearsExport 2D and 3D one tooth geometrical models, toABAQUS-CAEonly for spur gearsExport 2D and 3D one tooth geometrical models, toANSYSonly for spur gearsNext ReleasesAdd the export capabilities for helical gears in ANSYS and ABAQUS-CAE softwaresOptimization of the profile shift modificationHelp and DocumentationThe documentation isn’t ready yet, see the demo.py file for uses exampleContributeif you want to contribute with the project contact with the author by e-mail
e-mail:efirvida@gmail.com