Saravanan666/pypi-org huggingface dataset:
Package: easy-tokenizer
DescriptionMost tokenizers are eithor too cumbersom (Neural Network based), or too simple.
This simple rule based tokenizer is type, small, and sufficient good. Specially,
it handles long strings very often parsed wrong by some simple tokenizers, deal
url, email, long digits rather well.Try with the following script:easy_tokenizer-sinput_textoreasy_tokenizer-finput_fileCI StatusRequirementsPython 3.6+Installationpip install easy-tokenizerUsageeasy-tokenizer:input:string: input string to tokenizefilename: input text file to tokenizeoutput: output filename, optional. print out to STDOUT when not setoutput:a sequence of space separated tokensexamples:# string input
easy-tokenizer -s "this is   a simple test."

easy-tokenizer -f foo.txt
easy-tokenizer -f foo.txt -o bar.txtoutput will be “this is a simple test .”DevelopmentTo install package and its dependencies, run the following from project
root directory:python setup.py installTo work the code and develop the package, run the following from project
root directory:python setup.py developTo run unit tests, execute the following from the project root
directory:python setup.py test
Package: easyTongjiapi
Easy-TongjiAPI项目仍处于测试状态，功能开发尚未完成，敬请注意项目简介本项目是同济大学教务系统的信息查询、课表操作、成绩查询等学生教务API的封装，以及登录教务系统等辅助功能的实现。作者相信，借助本项目，任何一个有python基础的人都可以轻松完成换课、查询成绩等操作；而对那些对python较为熟练的人来说，使用本工具可以让他们如虎添翼，轻松完成自动查成绩、抢课、监视扩课等操作。在使用本工具时，请负起责任心。1系统不是你的后花园，请不要对1系统发出过量的请求。忘了那烦人的Cookie、headers和乱七八糟的接口和格式吧!本项目是：一个任何人都可以轻松使用的Python包一个封装了基本教务功能API接口的工具一个使你不用再去浏览器复制cookies的好帮手本项目不是：抢课工具可以黑入一系统的神奇软件技术力很强的作品安装环境要求对所有用户，都需要3.0以上的Python环境。对于Windows用户，只需拥有Python 3.6及以上的环境即可。在Powershell / cmd / 终端输入python --version查看你的版本。若你的Python版本小于3.6，则你需要拥有生成工具。你可以安装Visual Studio生成工具：官方链接若你有Conda工具，也可以使用conda install libpython m2w64-toolchain -c msys2来安装生成工具。对于Linux、Unix和Mac用户，需要拥有生成工具（gcc）。大多数发行版都会随附生成工具，在控制台输入gcc --version查看自己是否已经安装gcc。安装过程pipinstalleasyTongjiapi对Linux、Unix和Mac用户，可能需要使用pip3而不是pip。
Package: easy-toolkit
# convenient_toolkit#### 介绍
一个常用工具箱的命令行工具集，使用Click开发，配置文件路径为`$HOME/.easy_tools/config.json`，使用`json`字符串的形式。#### 使用说明
直接运行`easytool`就可以查看命令分组#### 当前集成功能
1.github图床
命令：easytool gitpic -f your_pic_path要求：配置文件中添加`github_token`或者`github_username`、github_password`用于认证，同时还要添加事先创建好的仓库`github_reponame`名称（例如python的仓库名为`python/cpython）
参数：-f（–file）必须要，-n(–name)或-m(–message)非必须
Package: easy-tools
Easy ToolsPython’sitertoolslibrary is a gem - you can compose elegant solutions
for a variety of problems with the functions it provides. Ineasy-toolswe collect additional building blocks, recipes, and routines for working with
Python iterables.Getting startedTo get started, install the library withpip:pipinstalleasy-toolsThe recipes (modules/functions) included in this package are:doublet_occurrencetriplet_occurrenceequilibrium_pointnon_divisible_subset_lenleaders_to_leftdivisible_pairsleaders_to_rightlargest_number_possibleFor example,>>>fromeasy_toolsimportlargest_number_possible>>>iterable=[98,9,26]>>>largest_number_possible(iterable)99826You can use help function to get the detailed description of a function.>>>help(function_name)Developmenteasy-toolsis maintained by@jayanth.
If you have a problem or suggestion, please file a bug or pull request in this
repository. Happy Pythoning!
Package: easy-torch
EasyTorchEnglish|简体中文EasyTorch is an open source neural network framework based on PyTorch, which encapsulates common functions in PyTorch projects to help users quickly build deep learning projects.:sparkles: Highlight Characteristics:computer:Minimum Code. EasyTorch encapsulates the general neural network training pipeline. Users only need to implement key codes such asDataset,Model, and training/inference to build deep learning projects.:wrench:Everything Based on Config. Users control the training mode and hyperparameters through the config file. EasyTorch automatically generates a unique result storage directory according to the MD5 of the config file content, which help users to adjust hyperparameters more conveniently.:flashlight:Support All Devices. EasyTorch supports CPU, GPU and GPU distributed training (single node multiple GPUs and multiple nodes). Users can use it by setting parameters without modifying any code.:page_with_curl:Save Training Log. Supportlogginglog system andTensorboard, and encapsulate it as a unified interface, users can save customized training logs by calling simple interfaces.:cd: DependenceOSLinuxWindowsMacOSUbuntu 16.04 and later systems are recommended.Pythonpython >= 3.6 (recommended >= 3.9)MinicondaorAnacondaare recommended.PyTorch and CUDApytorch>= 1.4 (recommended >= 1.9).
To use CUDA, please install the PyTorch package compiled with the corresponding CUDA version.Note: To use Ampere GPU, PyTorch version >= 1.7 and CUDA version >= 11.0.:dart: Get StartedInstallationpipinstalleasy-torchInitialize ProjectTODO:pushpin: ExamplesLinear RegressionMNIST Digit RecognitionImageNet Image ClassificationMore examples are on the wayIt is recommended to refer to the excellent open source projectBasicTS.:rocket: CitationsBibTex CitationsIf EasyTorch helps your research or work, please consider citing EasyTorch.
The BibTex reference item is as follows(requires theurlLaTeX package).@misc{wang2020easytorch,
  author ={Yuhao Wang},
  title ={{EasyTorch}: Simple and powerful pytorch framework.},
  howpublished ={\url{https://github.com/cnstark/easytorch}},
  year ={2020}}README BadgeIf your project is using EasyTorch, please consider put the EasyTorch badgeadd to your README.[![EasyTorch](https://img.shields.io/badge/Developing%20with-EasyTorch-2077ff.svg)](https://github.com/cnstark/easytorch)(Full documentation is coming soon)
Package: easytrader
easy to use to trade in China StockInstallationpip install easytraderUpgradepip install easytrader –upgradeQuick Startimport easytrader

user = easytrader.use('ht')

user.prepare('account.json')

user.balancereturn:[{ 'asset_balance': '资产总值',
   'current_balance': '当前余额',
   'enable_balance': '可用金额',
   'market_value': '证券市值',
   'money_type': '币种',
   'pre_interest': '预计利息' ]}

user.positionreturn:[{'cost_price': '摊薄成本价',
   'current_amount': '当前数量',
   'enable_amount': '可卖数量',
   'income_balance': '摊薄浮动盈亏',
   'keep_cost_price': '保本价',
   'last_price': '最新价',
   'market_value': '证券市值',
   'position_str': '定位串',
   'stock_code': '证券代码',
   'stock_name': '证券名称'}]

user.entrustreturn:[{'business_amount': '成交数量',
  'business_price': '成交价格',
  'entrust_amount': '委托数量',
  'entrust_bs': '买卖方向',
  'entrust_no': '委托编号',
  'entrust_price': '委托价格',
  'entrust_status': '委托状态',  # 废单 / 已报
  'report_time': '申报时间',
  'stock_code': '证券代码',
  'stock_name': '证券名称'}]

user.buy('162411', price=5.55)

user.sell('16411', price=5.65)
Package: easytrader-welaunch
easy to use to trade in China StockInstallationpip install easytraderUpgradepip install easytrader –upgradeQuick Startimport easytrader

user = easytrader.use('ht')

user.prepare('account.json')

user.balancereturn:[{ 'asset_balance': '资产总值',
   'current_balance': '当前余额',
   'enable_balance': '可用金额',
   'market_value': '证券市值',
   'money_type': '币种',
   'pre_interest': '预计利息' ]}

user.positionreturn:[{'cost_price': '摊薄成本价',
   'current_amount': '当前数量',
   'enable_amount': '可卖数量',
   'income_balance': '摊薄浮动盈亏',
   'keep_cost_price': '保本价',
   'last_price': '最新价',
   'market_value': '证券市值',
   'position_str': '定位串',
   'stock_code': '证券代码',
   'stock_name': '证券名称'}]

user.entrustreturn:[{'business_amount': '成交数量',
  'business_price': '成交价格',
  'entrust_amount': '委托数量',
  'entrust_bs': '买卖方向',
  'entrust_no': '委托编号',
  'entrust_price': '委托价格',
  'entrust_status': '委托状态',  # 废单 / 已报
  'report_time': '申报时间',
  'stock_code': '证券代码',
  'stock_name': '证券名称'}]

user.buy('162411', price=5.55)

user.sell('16411', price=5.65)
Package: easytrakt
installpipinstalleasytraktusefromeasytraktimportClientclient=Client()search_results=client.search("The Big Lebowski")movie=search_results[0]assertmovie.title=="The Big Lebowski"with OAuth you need a session with a token this libary does not take
care of OAuth authentcation but can use aOAuth2Sessionfromrequests_oauthlib# you get this stuff from the oauth processtoken={"access_token":"","created_at":1433447370,"expires_in":7776000,"expires_at":1441223370.73398,"token_type":"bearer","scope":["public"],"refresh_token":""}fromrequests_oauthlibimportOAuth2Sessionsession=OAuth2Session(your_app_client_id,token=token)fromeasytraktimportClientclient=Client(session)search_results=client.shows("Dexter")show=search_results[0]assertshow.title=="Dexter"# all ids are behind 'ids'assertshow.ids.trakt==1396# the trakt id has a short versionassertshow.ids.trakt==show.trakt# for a show/movie it's also the .idassertshow.trakt==show.id# or if you have the trakt idfromeasytrakt.modelsimportShow# still need a client ...dexter=Show(client,1396)forseasonindexter.seasons:printseason.numberprintseason.images.poster.mediumforepisodeinseason.episodes:printepisode.numberprintepidode.titleprintepisode.first_air_dateprintepisode.images.screenshot.fullevery attribute is build dynamically, to get all keys on the current
level call.keys()of any model class
Package: easytrans
Easy Trans:Convert other file formats to doc format.Convert other file formats to pdf format.Convert other file formats to png format.Convert other file formats to jpg format.More functions are waiting for you to use.How to use?Please click here.https://github.com/YouAreOnlyOne/FastFrameJar/blob/master/PythonForEasyTrans/README.MDMoreWe are working hard to perfect…
Package: easy-translation
ET: Easy TranslationA quick Chinese<->English translation tool under terminalGetting StartedPrerequisitesGetpythonand pip(https://pypi.org/project/pip/) installedInstallingpip install easy-translationUsage➜  ~ et 二氧化碳
carbon dioxide
➜  ~ et origin
起源ContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsTodo:Glossary PersistenceExport GlossarySupport file: et -f '测试.txt'
Package: easytree
easytreeA recursive dot-styled defaultdict to read and write deeply-nested treesDocumentationDocumentation is hosted onread the docsInstallationpip install easytreeQuickstart>>>importeasytree>>>tree=easytree.dict()>>>tree.foo.bar.baz="Hello world!">>>tree{"foo":{"bar":{"baz":"Hello world!"}}}Creating trees that combine both list and dict nodes is easy>>>friends=easytree.list()>>>friends.append({"firstname":"Alice"})>>>friends[0].address.country="Netherlands">>>friends[0]["interests"].append("science")>>>friends[{"firstname":"Alice","address":{"country":"Netherlands"},"interests":["science"]}]Writing deeply-nested trees with list nodes is easy with a context-manager:>>>profile=easytree.dict()>>>withprofile.friends.append({"firstname":"Flora"})asfriend:...friend.birthday="25/02"...friend.address.country="France">>>profile{"friends":[{"firstname":"Flora","birthday":"25/02","address":{"country":"France"}}]}
Package: easy-trilateration
easy-trilaterationTrilateration example using least squares method in scipy (Graphing tools included).Trilateration enables the unknown point to be found. However a since there are a number of samples a non linear least squares method needs to be used to find the solution that has the least error.It is distinct from triangulation which has a series of angles to an unknown point. Trilateration uses a series of distances to an unkown point.How to installpip install easy_trilaterationHow to useSimple Trilaterationfrom easy_trilateration.model import *  
from easy_trilateration.least_squares import easy_least_squares  
from easy_trilateration.graph import *  
  
if __name__ == '__main__':  
    arr = [Circle(Point(100, 100), 50),  
  Circle(Point(100, 50), 50),  
  Circle(Point(50, 50), 50),  
  Circle(Point(50, 100), 50)]  
    result, meta = easy_least_squares(arr)  
    create_circle(result, target=True)  
    draw(arr)Location Historyarr = Trilateration([Circle(100, 100, 70.5),
                     Circle(100, 50, 50),
                     Circle(50, 50, 0),
                     Circle(50, 100, 50)])

arr2 = Trilateration([Circle(100, 100, 50),
                      Circle(100, 50, 70.5),
                      Circle(50, 50, 50),
                      Circle(50, 100, 0)])

arr3 = Trilateration([Circle(100, 100, 0),
                      Circle(100, 50, 50),
                      Circle(50, 50, 70.5),
                      Circle(50, 100, 50)])

arr4 = Trilateration([Circle(100, 100, 50),
                      Circle(100, 50, 0),
                      Circle(50, 50, 50),
                      Circle(50, 100, 70.5)])

hist: [Trilateration] = [arr, arr2, arr3, arr4, arr]

solve_history(hist)

a = animate(hist)MethodThis code uses thescipy.optimize.least_squaresmethod.
Package: easy-tweet-deleter
Easy Tweet DeleterA simple app to delete tweets from a twitter accountGet Your Keys!You need a Twitter dev account:https://developer.twitter.com/en/apps, set up a Twitter developer account, and create an "App".  This contains 2 consumer API keys:account_keyaccount_secrectAPI access tokens for your twitter account fromhttps://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens.  This contains 2 more API keys:access_keyaccess_secretInstructions:Easy Tweet Deleter contains 2 functions to check and to delete tweets, both require the same 6 parameters.
When checking tweets it is possible to list them to a text file with the optional 'text_file' parameter.username (str) = the twitter usernameaccount_key (str) = account_key from Step 1account_secret (str) = account_secret from Step 1access_key (str) = access_key from Step 2access_secret (str) = access_secret from Step 2date_older_than (str) = It will identify tweets before this date (use YYYY_MM_DD date format)Check TweetsUse the function 'check_easy_twitter_deleter' to find and list tweets.
It is reccomended that this is run first as when tweets are deleted they cannot be reteived!importeasy_tweet_deleterusername="Username"account_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"account_secret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"access_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"access_secret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"date_older_than="2020-01-01"text_file="filepath"easy_tweet_deleter.check_easy_twitter_deleter(username,account_key,account_secret,access_key,access_secret,date_older_than,text_file)Delete TweetsUse the function 'run_easy_twitter_deleter' to find and delete tweetsimporteasy_tweet_deleterusername="Username"account_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"account_secret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"access_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"access_secret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"date_older_than="2020-01-01"easy_tweet_deleter.run_easy_twitter_deleter(username,account_key,account_secret,access_key,access_secret,date_older_than)easy_tweet_deleter
Package: easytwitter
Easy-TwitterSimplifying Twitter APIs by leveraging tweepy APIs.Required stepsGetting Twitter developer account.For registrationInstall Pandas package.Install Numpy package.Install Tweepy package.# packages installation "In terminal"condainstallpandas
condainstallnumpy
pipinstalltweepy# importing packages in your jupyter notebookimportpandasaspd# Please use the abbreviation "pd"importnumpyasnp# Please use the abbreviation "np"importtweepyInstallation# how to install easytwitter packagepipinstalleasytwitterUsageImport module# use * to access all the objectsfromeasytwitterimport*First your should establish the connection# returns 4 inputs to validate your twitter tokens.user.connect_me()# consumer_key = "xxxxxxxxxxxxxxxxxxxx"# consumer_secret = "xxxxxxxxxxxxxxxxxxxxxxx"# access_token = "xxxxxxxxxxxxxxxxxxxxxx"# access_token_secret = "xxxxxxxxxxxxxxxxxxxxxxx"API Referenceget_user_timeline()Returns a summary of the latest 20 tweets of a specific twitter account.# if you want to interact with the data, store it in a new dataframedf=user.get_user_timeline()df.head()get_followers_details()Returns a users' followers details.df=user.get_followers_details()df.head()ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: easy-twitter-interactors
easy_twitter_interactors推特（Twitter）点赞,刷阅读量程序，希望能为使用者带来益处。如果您也想贡献好的代码片段，请将代码以及描述，通过邮箱（xinkonghan@gmail.com）发送给我。代码格式是遵循自我主观，如存在不足敬请指出！**文档地址：
**https://easy-twitter-interactors.xink.top/**PyPi地址：
**https://pypi.org/project/easy-twitter-interactors**GitHub地址：
**https://github.com/hanxinkong/easy-twitter-interactors推特三件套（有需要可自行安装）easy_twitter_publisher推特发帖,回帖,转载https://pypi.org/project/easy_twitter_publishereasy_twitter_crawler推特采集https://pypi.org/project/easy-twitter-crawlereasy_twitter_interactors推特互动（点赞,刷阅读量等）https://pypi.org/project/easy_twitter_interactors安装pip install easy-twitter-interactors主要功能likes对指定帖子点赞reads对指定帖子刷阅读量（暂无）简单使用设置代理及cookie (点赞和阅读均需要设置cookie)proxy={'http':'http://127.0.0.1:10808','https':'http://127.0.0.1:10808'}cookie='auth_token=686fa28f49400698820d0a3c344c51efdeeaf73a; ct0=5bed99b7faad9dcc742eda564ddbcf37888f8794abd6d4d736919234440be2172da1e9a9fc48bb068db1951d1748ba5467db2bc3e768f122794265da0a9fa6135b4ef40763e7fd91f730d0bb1298136b'点赞使用案例（对指定帖子点赞）fromeasy_spider_toolimportformat_jsonfromeasy_twitter_interactorsimportTwitterLikes,get_headerstwitter_likes=TwitterLikes()twitter_likes.set_proxy(proxy)twitter_likes.set_headers(get_headers(cookie))likes_info=twitter_likes.likes('1690065356495421444')print(format_json(likes_info))点赞参数说明字段名类型必须描述to_tweet_idstring是目标帖子id（https://twitter.com/elonmusk/status/1690164670441586688中的 1690164670441586688）依赖内置依赖typingType Hints for Python.jsonType Hints for Python.第三方依赖requestsAn XPath for JSON.loguruAn XPath for JSON.urllib3Python library used for working with timezone information.easy_spider_toolPython library used for working with timezone information.注：依赖顺序排名不分先后链接Github：https://github.com/hanxinkong/easy-twitter-interactors在线文档：https://easy-twitter-interactors.xink.top贡献者许可证该项目根据MIT许可条款获得许可.
Package: easytwo
Easy EC2 Queries.Installpip install easytwoUsageUsage: easytwo [OPTIONS]

  Easy EC2 Queries.

Options:
  --id TEXT
  --name NAME
  --az AZ
  --state STATE
  --type TYPE
  --vpc VPC
  --ami AMI
  --public-ip PUBLIC-IP
  --private-ip PRIVATE-IP
  --tag TAG VALUE
  --output [id|az|state|type|public-ip|private-ip|ami|vpc|subnet]
  --helpExampleseasytwo --name mesos-master
i-127ffc4eb5e9d6cab
i-d5baaf2fd0e31c86e
i-ed2faccb4d035b16aeasytwo --name "es-*-cluster" --output id --output state --output private-ip
i-7ba0fbae64d58c1f9 running 10.0.0.4
i-af9cb4acf2e57d3d0 running 10.0.1.8
i-ed316aecb5fb2809d running 10.0.2.15
i-fe9b5acc2fb40d1a7 stopped 10.0.1.16easytwo --name mesos --tag NodeType Master --az us-east-1d --output type
c4.large
c4.large
c4.large
Package: easyTX
easyTX 2.0"easyTX" 2.0 is the ultimate module to exchange data in any form (video or string) from one PC to another.It works on the basis of udp broadcasting.The Server has the data that is continuously shared on the LAN.Any number of Clients can access the data from the Server.InstallationpipinstalleasyTXThe following convention is used here:the server is transmitting datathe client is receiving dataUsageserver.pyfrom easyTX import Server
socket = Server(5000)
socket.conn()
socket.send_frame()client.pyfrom easyTX import Client
import cv2
socket = Client(5000)
socket.conn()
while True:
	frame = socket.recv_frame()
	cv2.imshow('frame', frame)
	if cv2.waitKey(1) & 0xFF == ord('q'):
		print('Disconnecting..')
		break
Package: easytypes
easytypesEasy typed structures for Python with optional field checking and runtime type checking. Based on class decorators andtypeguardpackage for type checking.What does the package implementfrom easytypes import easy_type_decorator, safe_type, fast_type, unlimited_type
from easytypes import EasyTypesException
from easytypes import AttributeRequired, AttributeNotAllowed, AttributeTypeError
from easytypes import Required
from easytypes import disable_all_checks, enable_all_checksHow to define a simple data classfrom easytypes import easy_type_decorator, safe_type, fast_type, unlimited_type
from easytypes import EasyTypesException
from easytypes import AttributeRequired, AttributeNotAllowed, AttributeTypeError
from easytypes import Required
from easytypes import disable_all_checks, enable_all_checks

@safe_type  # You cannot: add new attrs; not set (or delete) the required attrs; assign wrong types
class A:
    a: int  # Type checking, not required, no default value
    b: str = '5'  # Type checking, not required, the default value is '5'
    c: float = Required()  # Type checking, required, no default value
    d: Tuple[int, int] = Required((2, 3))  # Type checking, required, the default value is (2, 3)...and how does the class workva = A(a=2, b='b', c=1.0, d=(2,4))  # Ok
assert va.a == 2
va.a = 5
assert va.a == 5
va = A(c=1.0)  # Ok, using default values
va = A(c=1.0, q=2)  # raises AttributeNotAllowed 
va.q = 0  # raises AttributeNotAllowed
va.a = '5'  # raises AttributeTypeError (a should be int)
va = A(c='c')  # raises AttributeTypeError (c should be float)
va = (b='c')  # raises AttributeRequired (a is missing)How to extend a class@safe_type
class B(A):
    e: str = 5  # Is added to the fields defined in A...and how to redefine a field@safe_type
class C(A):
    a: int = 5  # Not recomended and not prohibitedHow to disable all the checks at runtimedisable_all_checks()  # Does not affect all the previously created classes, so put it before the class declaration...and how to re-enable themenable_all_checks()  # Does not affect all the previously created classes, so put it before the class declarationThe other class decoratorsunlimited_type  # Allows to add the attributes that are not declared at the class level
fast_type  # No checks at all, just a constructor implemetation accepting the attributes...and how to get a customized decoratoreasy_type_decorator(chk_required=True, chk_allowed=True, chk_types=True)  # Allows to activate only the desired checks