Saravanan666/pypi-org huggingface dataset:
Package: easypackage
Easy Package - for PythonPython packages - the simple way.BackgroundHad to code Pythonso ended up abstracting out these Python package related utilities to be able to deal with Python packages which is in a sad state in comparison to most other language environments.FeaturesEasy package (system) load paths- because package imports and load paths in Python makes adults cry.Easy package tag/release- because package tag/release management should not be done by hand, fallback on conventions.InstallInstall usingpip:pipinstalleasypackageUsageHow to to make use ofeasypackagein various ways:RequiredCreate apackage.jsonin package root folder (e.g.mypackage) - seeNode.jsspecification, in lack of such for Python.Easy package load pathsIn any package source file:# e.g. `~/dev/projects/mypackage/foo/foo.py`defhello:print('hello!')In any other package source file:# e.g. `~/dev/projects/mypackage/bar/bar.py`fromeasypackageimportsyspathaseasysyspath# add `~/dev/projects/mypackage` to Python system path unless already addedeasysyspath.syspath()frommypackage.utils.fooimportfoofoo.hello()And so on.Easy package tag/release (WIP/TBA)In filerelease.pyin package project root:fromeasypackageimportreleaseaseasyreleaseeasyrelease.release()To tag/release a new version to Git, simply add/update a validsemverversion tag inpackage.json- according toNode.jsspecification - and then runpython release.py.Currently not submitted to any Python package register, but will probably be added soon.LicenseReleased under the MIT license.
Package: easypaddleocr
EasyPaddleOCRA simple, optional tool forPaddleOCR Detection, direction classification and recognition on CPU and GPU using torch.Usageimportcv2importnumpyasnpfromeasypaddleocrimportEasyPaddleOCReasyPaddleOCR=EasyPaddleOCR(use_angle_cls=True,needWarmUp=True)image_path='your-picture-filepath'image_ndarray=np.array(cv2.imread(image_path))result=easyPaddleOCR.ocr(image_ndarray)print(result)Referencehttps://github.com/WenmuZhou/PytorchOCRhttps://github.com/PaddlePaddle/PaddleOCRhttps://github.com/frotms/PaddleOCR2Pytorch
Package: easy-paddle-ocr
🤙🏻 Easy Paddle OCR ⚡️This a clean and easy-to-use implementation ofPaddle OCR. Made with ❤️ byTheos AI.Don't forget to subscribe to ourYouTube Channel!Install the packagepip install easy-paddle-ocrHow does it work?The text recognition is made on a cropped part of a larger image, usually these crops are made with the bounding box output of anObject Detectionmodel. You can learn how to build a license plate recogition model on the followingYouTube Tutorial. You can easily train a model to make bounding boxes around any kind of text, not just license plates. After training your own object detection model, you can pass those cropped bounding boxes to Easy Paddle OCR in order to perform text recognition and read the text they contain.Read the textOn theread.pyfile we recognize the text of 3 different cropped bounding boxes, each taken from larger images.broadway.jpegbrooklyn.jpegcasino.jpegLet's recognize all of them with the following script.fromeasy_paddle_ocrimportTextRecognizerimporttimeimportcv2text_recognizer=TextRecognizer()# for custom weights do TextRecognizer(weights='folder_path')images=['broadway.jpeg','brooklyn.jpeg','casino.jpeg']forfilenameinimages:image=cv2.imread(filename)start=time.time()prediction=text_recognizer.read(image)print(f'\n[+] image:{filename}')print(f'[+] text:{prediction["text"]}')print(f'[+] confidence:{int(prediction["confidence"]*100)}%')print(f'[+] inference time:{int((time.time()-start)*1000)}milliseconds')print()After running theread.pyscript you should see the following output.[+] image: broadway.jpeg
[+] text: BROADWAY
[+] confidence: 98%
[+] inference time: 39 milliseconds

[+] image: brooklyn.jpeg
[+] text: BROOKLYN
[+] confidence: 96%
[+] inference time: 31 milliseconds

[+] image: casino.jpeg
[+] text: CASINO
[+] confidence: 78%
[+] inference time: 30 millisecondsCustom TrainingIf you find that the default Paddle OCR weights don't work very well for your specific use case, we recommed you to train your own OCR model onTheos AI.A tutorial on how to do this is coming soon, but if you already signed up and figured out how to build your own dataset on Theos and trained it on Paddle OCR, the only thing you have to do now is download your custom weights from your training session experiment by clicking the weights button on the top right corner.Download theLastorBestweights and extract the zip file. Only the following files are required.dictionary.txt
inference.pdiparams
inference.pdiparams.info
inference.pdmodelFinally, set the new weights folder path when you instantiate your TextRecognizer.text_recognizer=TextRecognizer(weights='./best')Contact usReach out tocontact@theos.aiif you have any questions!
Package: easy-parallel
Parallel wrapper for easy multi-threading.InstallationThrough pip:$pipinstalleasy-parallelManually, from package root, run:$makerequirementsUsageIn python session:deffoo(x,y):returnx+ynum_threads=10inputs=[(x*x,x)forxinrange(10)]importparallelasparresults=par.submit_jobs(foo,inputs,num_threads)printresults
Package: easy-parallel-py3
Parallel wrapper for easy multi-threading (Python 3 version).InstallationThrough pip:$pip3installeasy-parallel-py3Manually, from package root, run:$makerequirementsUsageIn python session:deffoo(x,y):returnx+ynum_threads=10inputs=[(x*x,x)forxinrange(10)]importparallelasparresults=par.submit_jobs(foo,inputs,num_threads)print(results)
Package: easypass
EasyPassМодуль для простой генерации паролей и почтовых ящиковОглавлениеУстановкаФункции и классыАргументыPasswordPassword.print()Password.save()EmailEmail.print()Email.save()Генерация пароляГенерация почтового ящикаУстановкаУстановка осуществляется командой в терминале:pip install easypassФункции и классыВ модуле есть два класса —PasswordиEmail. У них есть 3 функции. Это конечно же__init__(), в котором создаётся пароль/почта,print()для вывода пароля или почты в консоль иsave()для сохранения в файл.АргументыВ таблице указаны имя параметра, его значение по умолчанию и то, за что он отвечает.PasswordПараметрЗначениеОписаниеlenght8Длина пароляlowerTrueНаличие нижнего регистраupperTrueНаличие верхнего регистраnumbersTrueНаличие цифрsymbolsFalseНаличие специальных знаковPassword.print()Нет никаких параметров, функция просто выводит пароль в консольPassword.save()ПараметрЗначениеОписаниеpathNoneПуть к файлуEmailПараметрЗначениеОписаниеlenght17Длина символов до знака "@"lenght25Длина символов после знака "@"lowerTrueНаличие нижнего регистраupperTrueНаличие верхнего регистраnumbersTrueНаличие цифрEmail.print()Нет никаких параметров, функция просто выводит почту в консольEmail.save()ПараметрЗначениеОписаниеpathNoneПуть к файлуГенерация пароляПример кода генерации пароля:importeasypasspassword=easypass.Password()password.print()password.save("my.password")Генерация почтового ящикаПример кода генерации почтового ящика:importeasypassemail=easypass.Email()email.print()email.save("my.password")
Package: easy-password-generator
Random password GeneratorA strong but super simple to use library to generate passwordsSupports Flask, DjangoGenerate a simple password of default length 6-16.UsageInstall the library.Import the library.Modify the default properties. (Optional)Generate strong password (Default length of password 6-16 unless specified via properties).pipinstalleasy-password-generatorfromeasy_password_generatorimportPassGenpwo=PassGen()pwo.generate()ConfigurationpropertyDescriptionDefaultminlenMinimum length of the password6maxlenMaximum length of the password16minucMinimum upper case characters1minlcMinimum lower case characters1minnumMinimum numerical characters1minscMinimum special characters1Examples:pwo=PassGen()pwo.generate()Generate a custom passwordpwo=PassGen(minlen=10,maxlen=15)pwo.generate()Generate Non Duplicate Passwordpwo=PassGen()# length of required passwordpwo.next(20)Update V0.0.7Introduces next functionUpdate V0.0.6From version 0.0.6, Initial library launchContributionsContributions can be made with PR or contactsghongadi@gmail.comLicenseMIT
Package: easyPB
easyPB介绍{以下是 Gitee 平台说明，您可以替换此简介Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台（同时支持 SVN）。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业，都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看https://gitee.com/enterprises}软件架构软件架构说明安装教程xxxxxxxxxxxx使用说明xxxxxxxxxxxx参与贡献Fork 本仓库新建 Feat_xxx 分支提交代码新建 Pull Request特技使用 Readme_XXX.md 来支持不同的语言，例如 Readme_en.md, Readme_zh.mdGitee 官方博客blog.gitee.com你可以https://gitee.com/explore这个地址来了解 Gitee 上的优秀开源项目GVP全称是 Gitee 最有价值开源项目，是综合评定出的优秀开源项目Gitee 官方提供的使用手册https://gitee.com/helpGitee 封面人物是一档用来展示 Gitee 会员风采的栏目https://gitee.com/gitee-stars/
Package: easypcd
Easypcd使你更专注与代码本身，而不需要因为pcd格式所带来的烦恼。v0.0.28更新：错误的rgb色彩空间0、 安装easypcdpip install easypcd1、 调用easypcdfrom easypcd import epimport open3d as o3dimport numpy as np2、 读取pcd文件ep_pcd = ep.read_pcd("point.pcd")# 读取pcd文件print("point indormation:", ep_pcd)# 打印所有信息print("point:", ep_pcd.points)# 打印点云坐标print("points type:", type(ep_pcd.points))# 打印点云类型3、 写入pcd文件ep.write_pcd(save_name="ep-sample.pcd", points=ep_pcd.points)必要参数：save_name:保存的文件名points：需要保存的点云数据可选参数color：是否有颜色信息（True/False），默认Falsenormal：是否有向量信息（True/False），默认False_SIZE：字节数量，默认为4_TYPE：字符类型，默认为F4、 其他用法4.1、 open3d读取写入o3d_read = o3d.io.read_point_cloud("point.pcd")# 加载三维点云ep.write_pcd(save_name="sample.pcd", points=o3d_read.points)# 写入pcd4.2、 创建有颜色信息的点云points_xyz = np.random.randint(100, size=(100, 3))  # 点云坐标points_color = np.random.randint(5, size=(100, 3))  # 点云颜色points_nxyz = np.random.randint(100, size=(100, 3))  # 点云向量ep_points = np.concatenate((points_xyz, points_color, points_nxyz), axis=1)  # 拼接位置信息、颜色信息和向量信息ep.write_pcd(save_name="ep-points.pcd", points=ep_points, color=True, normal=True)  # 写入pcd4.3、 点云信息转为open3do3d_object = o3d.geometry.PointCloud()  # 初始化点云o3d_object.points = o3d.utility.Vector3dVector(ep_points[:, 0:3])  # 转为open3d的坐标o3d_object.colors = o3d.utility.Vector3dVector(ep_points[:, 3:6])  # 转为open3d的颜色信息o3d.visualization.draw_geometries([o3d_object], window_name="POINT", width=400, height=300, mesh_show_back_face=True)  # 显示5、 合并多个点云point_cloud  = [[[-710.34927002, -237.10757877,  215.2757621 ], [-709.46899019, -236.99056383,  214.81596639], [[-708.6379193 , -238.05448845,  219.71073159], [-706.88288009, -237.81858778,  218.7811006 ]], [[-707.06327968, -239.84758949,  222.8262728 ], [-706.18809347, -239.72758696,  222.35760756]]]contract_point_list(point_cloud)6、移动最小二乘法平滑点云points = np.array([[0.0, 0.0, 0.0], [1.0, 1.0, 1.0], [2.0, 2.0, 2.0], [3.0, 3.0, 3.0]])smooth_points = ep.Moving_Least_Squares_Smoothing(points, radius=1, tau=0.5, weights_name='gaussian')7、移动最小二乘法上采样点云points = np.array([[0.0, 0.0, 0.0], [1.0, 1.0, 1.0], [2.0, 2.0, 2.0], [3.0, 3.0, 3.0]])orep_pcd = ep.read_pcd("point.pcd")points = ep.pointsup_sample_points = ep.Moving_Least_Squares_UpSampling(points, radius=50, tau=0.2, upsampling_rate=2, setUpsamplingRadius=1.0, weights_name='gaussian')
Package: easypeasy
Let’s discover easypeasy !Hello, if you are reading this, you only have one step left before discovering your new favorite Python package: the long-awaited easypeasy. Easypeasy is the result of10+ yearsof thinking and observation of the Python language for scientific & analytics purposes.As early adopters and ambassadors of the Python language in the European aerospace industry, we watched how Python packages started to look like good old Fortran, and soon became as heavy as Java.If you have never used theprintcommand without the parentheses, you will find it difficult to understand the rest, but let's try. When we justified to our end users the choice to migrate from Java to Python, we highlighted the fact that each Java library included its own specific data format.We don't want to waste time and effort converting from one data format to anotherfrom one library to another.That was too complex: One package for Excel parsing ? One data format. One package for matrix inversion ? One data format.  One package for visualization ? One data format.And at the end, that same 10x10 double array being converted against its will ... But it less and less true that Python still offers that simplicity. So ... you will be able now to execute complex scientific routineswithout having to learn specific API you don't care about. You know how to put your data in some array ? Great, that's all it takes !And becausesimplicity opens up science to as many people as possible, we take particular care to qualify the numerical results you will get. It is not because a function returns a result that this result can be used to suppot a decision.We use the exception mechanism so that a dubious numerical result shocks you as much as a syntax error.Top features of easypeasyEasypeasy is devoted to deliver you state of the art methods and latest research algorithms curated for engineering purposes. We'll maintain here a list of top features and link to demonstrative examples. And we'll start along:sequencer: an impressive research work that proposes to sort your data and find the underneath structure in itTop 3 spec of easypeasyAny feature must expose a one line command that returns the result.Any feature requiring data as an input must accept a Python list to feed that data.Any usage limitation or domain restriction on a result must be escalated through Exception mechanism.
Package: easypg
DescriptionThe easypg package provides modules to make usingPygameeasier,
particularly for those learning to program.Currently, it consists of a module defining some standard colour tuples,
a module to simplify the drawing of lines, shapes and text, a module
to support font handling, two modules to support the use of sprites and a
general utilities module providing various tools such as aWindowclass with a built-in display loop.See the module docstrings for more information.RequirementsPython 3 or newer to use the package, 3.2 or newer to run all
the example codePygame, compiled for Python 3AcknowledgementsSome of this code is inspired by examples in the bookGame Programming
- The L Lineby Andy Harris (Wiley, 2007).
Package: easypheno
easyPheno: A state-of-the-art and easy-to-use Python framework for plant phenotype predictioneasyPheno is a Python framework that enables the rigorous training, comparison and analysis of phenotype predictions for a variety of different models.
easyPheno includes multiple state-of-the-art prediction models.
Besides common genomic selection approaches, such as best linear unbiased prediction (BLUP) and models from the Bayesian alphabet, our framework includes several machine learning methods.
These range from classical models, such as regularized linear regression over ensemble learners, e.g. XGBoost, to deep learning-based architectures, such as Convolutional Neural Networks (CNN).
To enable automatic hyperparameter optimization, we leverage  state-of-the-art and efficient Bayesian optimization techniques.
In addition, our framework is designed to allow an easy and straightforward integration of further prediction models.DocumentationFor more information, installation guides, tutorials and much more, see our documentation:https://easypheno.readthedocs.io/Case StudyIn the foldercase_study, you can find all data that we used for the case study included as supplementary for our publication.For more information on this case study, see our publication and its supplementary given below (doi: 10.1093/bioadv/vbad035).
For general information, see our documentation given above.ContributorsThis pipeline is developed and maintained by members of theBioinformatics lablead byProf. Dr. Dominik Grimm:Florian Haselbeck, M.Sc.Maura John, M.Sc.CitationWhen using easyPheno, please cite our publication:easyPheno: An easy-to-use and easy-to-extend Python framework for phenotype prediction using Bayesian optimization.Florian Haselbeck*, Maura John* and Dominik G Grimm.Bioinformatics Advances, 2023.doi: 10.1093/bioadv/vbad035*These authors have contributed equally to this work and share first authorship.
Package: easypikaio
EasyPikaIotLibrary for easy amqp communication via pika lirmbraryInstallationUse the package managerpipto install foobar.pipinstalleasypikaioUsagefromeasy_pika.pika_objimportPikaMassenger# creat connection to rabittmqPMI=PikaMassenger(username='<str>',password='<str>',host='<int:defualt(5672)>',port,exchange_name='<str>',exchange_type='<extype:defualt(direct)>')# for create  consumePMI.run(queue_name='<str>',routing_keys='<list>',callback='<function>')# function callbackdefcallback(ch,method,properties,body):...PMI.connection._channel.basic_ack(method.delivery_tag)# for publish  messagePMI.send_message(self,routing_key='<str>',data='<str>')
Package: easy-pipeline
pipelineThis package is inspired by Elixirs pipelines. You can define an interable
of callables and define them as pieline. The second element then gets the
result of the first element and so on.ExampleSay you have some callables (seetest/test_pipeline.py):defadd_age(item):item.age=22returnitemdefadd_name(name):deffun(item):item.name=namereturnitemreturnfunclassAddHeight:def__init__(self,height):self.height=heightdef__call__(self,item):item.height=192returnitemThen you can compose them to a pipeline:defsome_name(arg):returnpipeline(arg,add_age,inspect,add_name('Tom'),inspect(print),AddHeight(192),)And use it as one:classPlain:passplain_obj=Plain()res=some_name(plain_obj)assertres.age==22assertres.name=='Tom'assertres.height==192InspectFor debugging, it is quite useful to inspect the intermediate result
between two steps in the pipeline. This is easy withinspect:defsome_name(arg):returnpipeline(arg,add_age,inspect,add_name('Tom'),inspect(print),AddHeight(192),)Note that you can just use inspect, which usesepprintas default
printer or pass a custom method in to print.
Package: easy-pip-gui
ENGLISH NOTICE:Hi all !I made an easy GUI to use PIP, there are some cool functionalities :FIRST READ HELP BY CLICKING "NEED HELP?" BUTTON =)Type a library name in the field to install it e.g wxpythonPossibility to list installed librairiesPossibility to update ALL your libraries/or ONE AT ONCEPossibility to uninstall last installed(e.g if mistake) or from a list of installed libsYou can listen to music o/ => FIXED !USAGE : python -m easy-pip-gui-13/11/2023-
I had to list librairies as URLs to be able to get mouse events over them...MODE D'EMPLOI:Salut Ã  tous et Ã  toutes !J'ai crÃ©e un GUI simple d'utilisation pour PIP, il y'a quelques fonctionnalitÃ©s sympas :VOUS POUVEZ COMMENCER PAR CLIQUER SUR LE BOUTON "NEED HELP?" =)Taper le nom d'une librairie dans le champ de saisie pour l'installer ex: wxpythonPossibilitÃ© de lister les librairies installÃ©esPossibilitÃ© de mettre Ã  jour TOUTES les librairies ou de le faire UNE PAR UNEPossibilitÃ© de dÃ©sinstaller la derniÃ¨re(ex: en cas d'erreur) ou depuis une liste de librairies installÃ©esVous pouvez Ã©couter de la musique o/ => FIXED !UTILISATION : python -m easy-pip-gui-13/11/2023-
J'ai dÃ» mettre la liste de librairies installÃ©es sous forme d'URLs pour capturer les MouseEvent dessus...Enjoy ;)
contact :fawn06220@gmail.com
Package: easypki
easypkiBuild a Private Certificate Authority (PKI).FeatureIssuing a CA certificateIssuing a server certificateIssuing a client certificateIssuing a pkcs12 file containing the client certificate and CA certificateIssuance of CRL certificateSetuppipinstalleasypkiHow to useCertificate creation# module importfromeasypkiimportpki# make instanceprivate_pki=pki.BuildPKI()# make ca certca_cert,ca_key,ca_csr=private_pki.make_ca(country_name='JP',organization_name='Example Company',common_name='Private RootCA',cert_expire_days=36500)# make server certserver_cert,server_key,server_csr=private_pki.make_server(ca_cert=ca_cert,ca_key=ca_key,common_name='example.com',san=['192.168.1.1','*.example.com','example.net']cert_expire_days=365)# make client certclient_cert,client_key,client_csr=private_pki.make_client(ca_cert=ca_cert,ca_key=ca_key,common_name='user name',email_address='admin@example.com',cert_expire_days=365)# make pkcs12 datapkcs12=private_pki.make_pkcs12(ca_cert=ca_cert,client_cert=client_cert,client_key=client_key)# make crlcrl_cert,crl_key=private_pki.make_crl(expire_cert=server_cert,expire_date=7,crl_cert=crl_cert,ca_cert=ca_cert,)# save file# Please specify the stored variable and file namewithopen('ca_cert.pem','wb')asf:f.write(ca_cert)Variables output from the instance method are saved in pem data format, so they can be saved as they are.The certificate is also stored in the instance variable.
Therefore, you can also create it as follows.prvpki=pki.BuildPKI()ca_cert,ca_key,ca_csr=prvpki.make_ca(common_name='Private RootCA')server_cert,server_key,server_csr=prvpki.make_server(common_name='example.com')client_cert,client_key,client_csr=prvpki.make_client()pkcs12=prvpki.make_pkcs12()If you already have a CA certificate and CA key created
It can also be created as follows.prvca=pki.BuildPKI()ca_cert,ca_key,ca_csr=prvca.make_ca(common_name='Private RootCA')delprvcaprvpki=pki.BuildPKI(ca_cert=ca_cert,ca_key=ca_key)server_cert,server_key,server_csr=prvpki.make_server(common_name='example.com')client_cert,client_key,client_csr=prvpki.make_client()pkcs12=prvpki.make_pkcs12()
Package: easyplayer
EasyplayerEasyplayer is a python library that encapsulates the complex API of pygame2 to help users build games faster.InstallationUsepip:pipinstalleasyplayerUsegit:gitclonehttps://github.com/stripepython/easyplayer.gitcdeasyplayer
pipinstall-rrequirements.txt# If the installation fails, it can be installed manually.pythonsetup.pyinstallDocumentSeehttps://stripepython.github.io/easyplayer/
Package: easy-playlist
easy-playlistA library to easily manage yours playlists in pythonGetting startedInstallationUsagesCode exampleDocumentationInstallationThis library will work with python 3.6+PyPi :pip install easy-playlistGitHub :GithubUsagesThis library will work with any .mp3 files
It's was desinged to work with bots in generalCode exampleSimple tasksfromeasy_playlistimportPlaylistspls=Playlists()pl=pls.add_playlist("test")# pl = pls.get_playlist("test")# add music to your playlistpl.add_music("path_to_music.mp3")pl.add_music(["path_to_music.mp3","path_to_other_music.mp3"])# trigger the timer# this will take the first song of the playlistpl.play()# pause the timerpl.pause()# resume the timerpl.resume()# stop the current music and trigger the timer for the next onepl.next()# stop the current music and trigger the timer for the previous onepl.previous()# stop the timer and the musicpl.stop()# IMPORTANT# when you don't need to use the playlist anymore do this# this library use a thread to calculate the timepl.exit()To make it work with a botfromeasy_playlistimportPlaylists# any bot librarybot=Bot()pls=Playlists()pl=pls.add_playlist("test")# pl = pls.get_playlist("test")# code example@bot.command()defadd_music(music):pl.add_music(music)@bot.command()defpause():pl.pause()bot.pause_music()@bot.command()defresume():pl.resume()bot.resume_music()@bot.command()defplay(music):pl.play(music)bot.play_music(music)@pl.on_music_over()defmusic_over(data):print(f"{data.playlist.name}{data.music.name}is over, playing next now")pl.next()bot.play_music(pl.get_current().file)An other code to explainpl=Playlists()pl1=pl.add_playlist(name="test1",playlist=["music/bip1.mp3","music/bip2.mp3"])pl2=pl.add_playlist(name="test2",playlist=["music/bip1.mp3","music/bip2.mp3"])pl.add_music("test1","music/bip3.mp3")# pl1.add_music("music/bip3.mp3")# pl1 = pl.get_playlist("test1")# pl2 = pl.get_playlist("test2")pl1.play()pl2.play()print("starting...")@pl.on_music_over()defmusic_over(data):print(f"[{data.playlist.name}]{data.music.name}is over, next song now!")ifdata.playlist.is_over():print(f"Playlist{data.playlist.name}is over")data.playlist.clear()returndata.playlist.next()