Saravanan666/pypi-org huggingface dataset:
Package: easy-stopwatch
StopwatchHomely stopwatch that can do everything that you wantInstallationpip install easy-stopwatchDocumentationStopwatch(flags_limit:int = 10, ticks:int = 1)This class creates a stopwatchticks in secondsstart() --> NoneThis function start a stopwatchstop() --> NoneThis function stop a stopwatchturn_off() --> NoneThis function turn off a stopwatchtime() --> floatThis function return timeput_flag() --> listThis function save a time inflagsWhen you put up a flagflags[0] - first flagflags[1] - second flagUsageImport classStopwatch:from easy_stopwatch import StopwatchCreate objectstopwatch:stopwatch = Stopwatch()Start stopwatch:stopwatch.start()Print time:print(stopwatch.time())Example codefrom easy_stopwatch import Stopwatch

stopwatch = Stopwatch()
stopwatch.start()

while 1:
   print(int(stopwatch.time()))
Package: easy-streamdj
Works only if music requests is free.Easy streamdj.appCreated for easyer send/skip tracks in streamdj.app.proxy list for skip tracks fromhereHow to installpipinstalleasy-streamdjUsage examplesget some help:python-measy-streamdjsend one track:python-measy-streamdjsome_channel--video"https://www.youtube.com/watch?v=dQw4w9WgXcQ"send playlist of tracks:python-measy-streamdjsome_channel--playlist"https://www.youtube.com/playlist?list=PL2aMEXnwcG3nqpr49qfCJ5vLTuxImPdme"send playlist first playlist finded on youtube:python-measy-streamdjsome_channel--playlistserch"good music"skip current track:python-measy-streamdjsome_channel--skiprun easy streamdj over tor (linux):sudosystemctlstarttor# start tor service if it is not started alreadytorifypython-measy-streamdjsome_channel-P"bad music"--delay12--author"anonymous"Install from sourceInstallpython3.10+gitclonehttps://github.com/e6000000000/easy-streamdj.gitcdeasy-streamdj
pipinstallpoetry
poetrybuild
pipinstalldist/*.whl
Package: easystreaming
This is a little library for creating Servers and Clients to send data.Usage:ClientStream:myclient = Clientstream(addr, port) #Generatemyclient.connect() #Connectmyclient.setListener("connect", connect) #Replace the second argument with a function. Overgiving args:myclient.setListener("disconnect", disconnect) #Replace the second argument with a function. Overgiving args:myclient.setListener("recv", recv) #Replace the second argument with a function. Overgiving args: None, datamyclient.setListener("recvexception", recv) #Replace the second argument with a function. Overgiving args: exceptionmyclient.send("something", delay) #Send; delay is by default 300 msmyclient.pause() #Pausemyclient.unpause() #Unpauseis_paused = myclient.getpaused() #Getpausedmyclient.stop() #StopServerStream:myserver = Serverstream(addr, port, maxclients) #Generatemyserver.connect() #Connectmyserver.setListener("connect", connect) #Replace the second argument with a function. Overgiving args: sock_idmyserver.setListener("disconnect", disconnect) #Replace the second argument with a function. Overgiving args: sock_idmyserver.setListener("recv", recv) #Replace the second argument with a function. Overgiving args: sock, datamyserver.setListener("recvexception", recv) #Replace the second argument with a function. Overgiving args: exceptionmyserver.send(sock_id "something", delay) #Send to sock_id; delay is by default 300 msmyserver.pause() #Pausemyserver.unpause() #Unpauseis_paused = myserver.getpaused() #Getpausedmyserver.stop() #StopPacket:There are 3 default types of Packets. The JSON, pickle and repr Packet.
In this case, we use a JSONPacket to show it:
mypacket = JSONPACKET(data) #Create; data is by default {}
mypacket.set_data({"1":1, "2":2}) #Set
print(mypacket.get_data()) #Getall
print(mypacket.get_data("1")) #Get
myclient.send(mypacket.pack()) #Send
mypacket = JSONPacket.unpack(raw_data)to create an own Packet, you must create this:
class MyPacket(easystreaming.Packet):
def pack(self):
#return bytes of self.data
def unpack(rdata):
#return Packet with unpacked data
Package: easystyle
easystyleeasystyle is a python package created to allow simple and quick data analysis without having to export to excel. easystyle reads in the data as a dataframe as highlights certain cells depending on what the user calls. The package is heavily dependent on the styling in pandas and pulls some basic code from the Stying pandas documentation. Functions such as identifying, by highlighting the cell or text, the maximum, the minimum, outliers, and NaN values are used in easystyle. These functions allow the user to take a quick look at their data in Jupyter Notebook. It also serves the purpose of showing the data cleaner than with a standard dataframe so that you can present the information to others without having to go to excel.easystyle works great in Jupyter Notebook, but I am unsure of how well, or if it will work at all, in other environmentsInstalling easystylepip install easystyleImporting easystyleThe best way to import easystyle is:from easystyle import Style as esThis is since it makes it simpler to call functions when using the package. For the following examples we will assume this importing method.Highlight Negative Valuesdef highlight_negative(df, col = 'red'):In order to use highlight_negative, the user must provide the dataframe. The user does not need to provide a color, but may do so if they want a color other than red. To run the function:df = es.highlight_negative(df, color)Highlight Positive Valuesdef highlight_positive(df, col = 'green'):This function follows similarly to the function above. To run the function:df = es.highlight_positive(df, color)Highlight Negative and Positive Valuesdef highlight_neg_pos(df, colNeg = 'red', colPos = 'green'):Follows from above. To run the function:df = es.highlight_neg_pos(df, color_neg, color_pos)Highlight Maximum Valuedef highlight_max(df, column_names, col='yellow'):The function is fed an additional variable, the column names.column_namesis an array of the column names that you wish to find the maximum in. For example:column_names = ['A', 'B', 'C']
df = es.highlight_max(df, column_names, color)Highlight Minimum Valuedef highlight_min(df, column_names, col='orange'):Follows similarly to highlighting a maximum value. For example:column_names = ['A', 'B', 'C']
df = es.highlight_min(df, column_names, color)Highlight Outliersdef highlight_outlier(df, column_names, colLow='red', colUp='red'):This function uses the IQR method in order to find outliers. Again,column_namesis a array of column names. For example:df = es.highlight_outlier(df, column_names, colorLower, colorUpper)Highlight NaN Valuesdef highlight_NaN(df, color = 'red'):If any NaN values are detected, they are highlighted. For example:df = es.highlight_NaN(df, color)Give a Gradientdef highlight_gradient(df, color = 'green'):This function uses the gradients provided by the Seaborn package. For example:df = es.highlight_gradient(df, color)
Package: easy-sudoku-solver
installationpip install easy-sudoku-solverusagefrom sudoku_solver import SudokuSolver
unsolved_sudoku = '090060100030201004200080000500103900000006000009000008300509800040000070000020000'
solver = SudokuSolver(unsolved_sudoku)
solution = solver.solve()
print(solution)
// '79436518283527169421698475358214396747389652116975243832751
9846941638275658427319'
Package: easySum
easySumLICENSEThis software is released under the MIT License, see LICENSE.txt.Installpip install easySumUsagefrom easySum import summarize_sentences

result = summarize_sentences(<要約したい文章>, sentences_count=<要約後の文章数(デフォルトは3)>, algorithm=<アルゴリズム(デフォルトはlexrank)>)アルゴリズムは以下から選択lex: LexRanktex: TextRanklsa: LSAkl: KLluhn: Luhnredu: Reductionsum: SumBasic現在は日本語のみに対応. 英語対応は修正中.
Package: easy-symlink
Creates symlinks and all folders in the symlink path if they don't exist# You don't have to worry about creating the folder(s).# If the folder and subfolders don't exist, they will be created.# If a symlink already exists at the given path, it will be overwritten.# If something goes wrong, the function returns False# If everything is fine, it returns Truefromeasy_symlinkimportcreate_symlinkpp=create_symlink(r"C:\pictest4\1671814710.650013.png","f:\\aaaaaaaafolder1\\folder2\\folder3\\folder4\\img.png",)print(pp)True
Package: easyT
easyTeasyT,easyTo trade,easyTo use!WARNING!Now that I have your attention I would like you to reflect about the fact that$1.00 Dollarmight benotthatmuchto you, butyou, an incredible person, combined to other'samazing Sponsors, canfinancethis
project, and it willallow meto constantlyimprove and maintainit,and, I am not asking that much.Here is myPatreonlink.Yeah, I would like to do that, but I do not have that kind of money.That is Ok, and, there are many ways you can help me, here is a list:Starthis project on GitHub.Sharethis project.Open an account with Binance referral link:When you open an account on Binance you help me when you trade!Some of your tax paid returns for you and part goes for me.Below you can see the percentage cash back for me and for you, and you trade:For meFor youLink10%10%https://accounts.binance.com/en/register?ref=IBNF8RAW15%5%https://accounts.binance.com/en/register?ref=D11OJ6NP20%0%https://accounts.binance.com/en/register?ref=SAUNZ26XYou can find more information about theBinancereferral linkhereAnd, there areAdsin all the documentations, that hopefully, will help me finance this project.SummaryRequirementsLibraries DocumentationRequirementsThe first thing tou will need isPythoninstalled in your computer.
Right now, it is required the version 3.8.Yeah, ok, but I do not know how to install Python on my computer, or I do not want to install it.Can I still use it?In parts, you can use Notebooks that allows you to use Python direct from the web, test the code and, understand how
things works before try it in your computer.
Two famous Notebooks areGoogle ColaboratoryandJupyter Notebook.I will provide examples!Remember that the use of an IDE can make your live easier, I usePYCHARM!On your favorite IDE, you can use some project that you already have or create a new one, and then you install it:pipinstalleasyTThat is it! The first steps are completed!Q: What do I do now? How to use it?Simple, typeeasyton your terminal, and it will generate ademo.pyfile!
If you prefer, you can give to it a different name, just typing:easyt --file_name examplegenerates:example.pyeasyt --file_name test_filegenerates:test_file.pyLibraries DocumentationAll the Libraries Documentation and useful links are linked below:easyT -Documentation-GitHub-PypibinanceSpotEasyT -Documentation-GitHub-Pypimetatrader5EasyT -Documentation-GitHub-PypiMql5-Python-Integration -GitHubThe documentation for this specific project is this oneeasyT.See my page (Joao Paulo Euko) to see all my projects or for more information.
Package: easytable
This is the description file for the project.The file should use UTF-8 encoding and be written using ReStructured Text. It
will be used to generate the project webpage on PyPI, 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: easy-tasks
easy_taksTo not get annoyed by simple recurring tasks I created this small library.ContentInstallationUsageInstallationpip install easy-tasksYou will need to install to_precision from github to use all the percentage stuff. For this visithttps://github.com/BebeSparkelSparkel/to-precision, go to the latest release, which might behttps://github.com/BebeSparkelSparkel/to-precision/releases/tag/0.0.1, and download the .tar.gz. Withpip install <path to .tar.gz>you can finish your installation.Usagefurthest_value_in_listFunction returning the closest number of a list to a given valueclosest_value_in_listFunction returning the closest number of a list to a given valuefurthest_value_in_dictFunction returning the closest number of a dicts values to a given valueclosest_value_in_dictFunction returning the closest number of a dicts values to a given valuefind_dublicatesFunction returning a list of Dubs objects which have the properties:value,number_of_dublicatesandindicesremove_dublicatesFunction returning a copy of the given list in which only the first occurrence of every value remainsget_percentage_as_fitted_stringFunction returning the calculated percentage from the inout count and total fittet to the string lenght of 100.00 %args:count: current counting valuetotal: total valueround_to: rounding digits, default: 2with_percentage_symbol: boolean, adds ' %' if Trueprogress_printerCall this funciton in a loop with index+1 as count to monitor your progress.Will automatically switch to a new line when 100 % is reached.Remember to call print once if you break since the cursor will not move to the next line till 100 % are reached.main_and_sub_progress_printerBasically the progress_printer with one susbprocess.upper_case_first_letter_of_wordFunction returning a string in which the word begins with an upper case letter.upper_case_first_letter_of_wordsFunction returning a string in which every word begins with an upper case letter.unpack_listDissolve inner lists and tuples of nested list and tuples.LinksGitHub|PyPI
Package: easytax
taxesA lightweight Python Repo for calculating personal income taxes. Contributions are welcome.Installingpython3-mpipinstalleasytaxExample Usagepython3examples/example.pyContributingClone thetaxesrepo with:gitclonehttps://github.com/leehagoodjames/taxes.gitChange directories to the project's root with:cdtaxesEnsure tests pass with:python3-munittestdiscovertestsMake awesome changes!Releasing New ModulesIncrement the version inpyproject.tomlBuild with:rm-rfdist;python3-mbuildUpload to pypi with:python3-mtwineupload--repositorypypidist/*
Package: easyTCP
[![PyPI](https://img.shields.io/apm/l/vim-mode.svg?style=flat-square)](https://github.com/dsal3389/easyTCP/blob/master/LICENSE)[![](https://img.shields.io/pypi/pyversions/Django.svg?style=flat-square)](https://pypi.org/project/easyTCP/#description)# easyTCPan esay way to user async server# installing`python3 -m pip3 install -Uv easyTCP`### examplefiles for example [here][examples].[examples]: https://github.com/dsal3389/easyTCP/tree/master/example### what you get- encryption- BUILD IN requests- user level `superuser/normal user`# Quick start```pyimport asynciofrom easyTCP.SERVER.backend import SERVERfrom easyTCP.SERVER.utils import DEFAULT_SETTINGSfrom easyTCP.SERVER.utils.BUILD_IN import BUILD_IN@SERVER.on_readyasync def x(server):print("[+] SERVER started (IP: %s | PORT: %d)" %(server.ip, server.port))async def main(loop):server = SERVER('127.0.0.1', 25569, None, settings=DEFAULT_SETTINGS, superuser_password='123', loop=loop)await server.start()if __name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main(loop))try:loop.run_forever()finally:loop.close()```**(this is a server that only show when he is ready but everything is still working like `removing/adding` clientsand build in commands are loaded recommanded looking at [here][examples])**
Package: easyTCP2
easyTCP2installpip install easyTCP2what is easyTCP2?it is the same concept like easyTCP (first version) but more stable, understandable, flexable, readable and more features
(and also because i was too layz to update the last one)
this gives you full controll on your server and make it easy and stableinspirationI have inspired bydiscord.pypackage because this
help you build bots so easily and they are useful so I wanted an easy way to build
asyncronus server so I have did many tests and took inspiration from thediscord.pycode
(no I dont copy code accept thisfunction) I dont take cradit for things I didnt think/did
all by myselfwhat I get from that package?easyTCPeasyTCP2user levelsyesyesgroupsnoyeseventsnoyesstablenot muchyesloggingnoyesencryptionyesnologgingnoyeswhy there is no encryption like last version?it is the best to give you the control about those things
(there is encryption support)when to useif you creating a small project that needs a server
or an app that module can be very usefulexamplesexample fileshere.
I add there examples in any update
if there is a missing version in the example it is because
it is not a big change or even only bug fixingquick startimportasynciofromeasyTCP2.Core.SettingsimportSettingsfromeasyTCP2.ServerimportServerSettings.use_default()# using default@Server.ready()asyncdeffoo(server):print("Server running (ip:%s| port:%d)"%(server.ip,server.port))@Server.Event(5)asyncdefoof():print("oof event called :)")asyncdefmain(loop):server=Server(loop=loop)awaitserverif__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete()try:loop.run_forever()finally:loop.close()if you like or wanna try, install it!
it is not hard
Package: easy-tcp-python2-3
easy-tcp-python2-3easy socket programming between python 2 and 3 without compatibility issuesreceive and send the list, json or image via pickle and cv2 (jpeg)Dependenciespython 2 or python 3 (>=3.7)opencv-pythonpickle-compatInstallation$ pip install easy_tcp_python2_3Usagesend a sample list and image from a server to client# server
from easy_tcp_python2_3 import socket_utils as su
import numpy as np
sock, add = su.initialize_server('localhost', 7777)
sample_list = [1, 2]
print("Send list:, sample_list)
su.sendall_pickle(sock, sample_list)
sample_image = np.uint8(np.zeros([480, 640]))
print("Send image:, sample_image.shape)
su.sendall_image(sock, sample_image)

# client
from easy_tcp_python2_3 import socket_utils as su
sock = su.initialize_client('localhost', 7777)
recv_list = su.recvall_pickle(sock)
print("Received list:", recv_list)
recv_image = su.recvall_image(sock)
print("Received image:"recv_image.shape)AuthorsSeunghyeok BackseungbackLicenseThis project is licensed under the MIT License
Package: easytello
easyTelloeasyTellois a Python library created to provide users with a simple way to interface and send commands to the DJI Tello drone, as well as to simply and easily teach students how to control the drone using Python 3. All the commands outlined in the DJI Tello SDK 1.3.0.0 are present in this library.InstallationTo install the library, simply run:pip install easytelloor to install from cloned source:$ git clone https://github.com/Virodroid/easyTello.git
$ cd easyTello
$ python setup.py installNote:easyTello requires OpenCV-Python. If you don't have it installed, simply run:pip install opencv-pythonFor more information on OpenCV-Python clickhere.ExamplesCreating a drone object in Python:fromeasytelloimporttellomy_drone=tello.Tello()Programming the drone to takeoff, fly in a square and then land:my_drone.takeoff()foriinrange(4):my_drone.forward(100)my_drone.cw(90)my_drone.land()Toggling state of video stream:# Turning on streammy_drone.streamon()# Turning off streammy_drone.streamoff()
Package: easy-template
Easy TemplateProcess templates with ease.You can process template files (process_file()) or text templates (process_template()).Templatingprocess_file('foobar.md', values={'name': 'Hans'}, lookup_dir='scripts'){{=key}}gets replaced with the value looked up in the provided value dict{{=key.nested_key1.nested_key2}}gets replaced with the value looked up in the provided value dict:values['key']['nested_key1']['nested_key2']{{foobar.py}}gets replaced with the content of the file located in thelookup_dirfolder or a subfolder.{{%py% foobar.py}}wraps the content with a markdown code block.{{%py%= key}}wraps the content as a markdown code block.helper functionsSide-By-Side CodeSometimes it is useful to have a side-by-side view of some code, especially for correcting examns...See the examples for more details. The bewlow returns a Table as follows:side_by_side_code(q2_answer,q2_solution,titles=['Answer','Solution'],max_line_length=80)Result:Answer|Solution------------------------------------------------------defcollatz(a):|defcollatz(number):ifa%2==0:|ifnumber%2==0:returnint(a/2)|returnnumber//2else:|return3*number+1return3*a+1|||zahl=9z=9|result=[]r=[]|whilezahl>1:whilez>1:|zahl=collatz(zahl)z=collatz(z)|result.append(zahl)r.append(z)|print(result)print(r)|Package and upload to pip@seethis tutorialrm-rfbuild/dist/easy_template.egg-info/&&\python3setup.pysdistbdist_wheel&&\python3-mtwineuploaddist/*Changelog0.0.2 fix bug which stopped future template replacing when no script was found
0.0.1 initial release
Package: easytensor
EasyTensorThe official python client forEasyTensor.InstallationPretty straightforward.pipinstalleasytensorUsageOnce you have a model exported to your local storage, you can upload it to easytensor in one line of code.TensorFlowExporting and uploading a modelimporteasytensorimportosexport_path=os.path.join(os.getcwd(),"my_model")print("export_path:{}".format(export_path))# Export the modeltf.keras.models.save_model(model,export_path,overwrite=True,include_optimizer=True,save_format=None,signatures=None,options=None)# Upload it to easytensor.model_id,access_token=easytensor.tensorflow.upload_model("My first model",export_path)print("model ID:",model_id)print("access token:",access_token)Running prediction on the cloudfrompprintimportpprintimportrequestsresponse=requests.post("https://app.easytensor.com/query/",json={"instances":[image_to_predict.numpy().tolist()]},headers={"accessToken":access_token})print("Response from server:")pprint(response.json())ExamplesThe library comes with a few example Jupyter notebooks that walk you through a few possible workflows. They are helpful if you are starting out with ML or remote model prediction.RequirementsTensorflow 2. TF2 currently (early 2021)requires a python version 3.5-3.8. You will have to install a compatible version of python.virtualenvjupyter notebookFor Macbrew install python@3.8For Ubuntusudo apt install python3.8 python3.8-devTo run the examples, create a python virtual env, and install jupyter notebook.# install virtualenvpip3installvirtualenv# create a virtualenv with python3.8 in ~/virtualenv-3.8virtualenv--python=$(whichpython3.8)~/virtualenv-3.8# activate the virtual envsource~/virtualenv-3.8/bin/activate# install jupyter notebook and necessary widgetspipinstallnotebookipywidgets# run jupyter notebookjupyternotebookQuestions and HelpIf you have any querstions about how EasyTensor works or want help with serving your ML model, please contact me directly atkamal@easytensor.com. I'm here to help!
Package: easy-terminal
easy-terminalA library that help you to convert function into terminal commandGetting startedInstallationUsagesCode exampleDocumentationInstallationpip install easy-terminalRequire easy-events>=2.2.0GitHub :GithubUsagesAdd the @terminal() before the function you want to try in the terminal
Use @main() to redirect any input to the function linkedCode examplefromeasy_terminalimportterminalhelp_msg="""pc processor ram    : will print the informations of the pchello               : will print worldhelp                : will show this message"""@terminal(aliases=["help"])defh():print(help_msg)classA:nb=1def__init__(self,nb=5):self.nb=nb@terminal()defhello(self):print("world",self.nb,"\n")a=A(6)@terminal()asyncdefhello():print("world\n")@terminal()defpc(processor:str="intel",ram:str="8go"):print(f"processor:{processor}\nram :{ram}\n")@main()defprincipal(car:str="mercedes"):print(f"Your car is a{car}")""">helloworld>A.helloworld 1>a.helloworld 6>pcprocessor: intelram : 8go>pc amdprocessor: amdram : 8go>pc amd 16goprocessor: amdram : 16go>helppc processor ram    : will print the informations of the pchello               : will print worldhelp                : will show this message>peugotYour car is a peugot"""This lib make you run python function in a terminal