Saravanan666/pypi-org huggingface dataset:
Package: easyload
easyloadLoading and Saving data made easy！Main FeaturesA Python library for loading multiple types of data：Support Data Type: json, excel, csv, txt, npy, pkl, sql.InstallationThe code is Python 3 compatibleFully automatic installation:easy_install easyloadorpip install easyload/pip3 install easyloadSemi-automatic installation: downloadhttps://pypi.python.org/pypi/easyload/, unzip and run python setup.py installManual installation: place easyload directory in the current directory or site-packages directoryuseimport easyloadto importQuick start# encoding=utf-8importeasyload# use easyload to load every fileload_file_path=""data=easyload.load(load_file_path)# load json fileload_json_file_path,save_json_file_path=" "," "json_data=easyload.load_json(load_json_file_path)easyload.save_json(save_json_file_path,json_data)
Package: easy-local-features
easy-local-features-baselinesJust some scripts to make things easier for the local features baselines.Installation# make sure you have torch installed# pip install torch torchvisionpipinstalleasy-local-featuresInstalling from sourceYou may want to install from source if you want to modify the code or if you want to use the latest version. To do so, you can clone this repository and install the requirements.I suggest using a conda environment to install the requirements. You can create one using the following command.condacreate-nelfpython=3.9# the python version is not so critical, but I used 3.9.condaactivateelfNow we can install everything.pipinstall-rrequirements.txt
pipinstall-e.How to use# Choose you extractorfromeasy_local_features.feature.baseline_superpointimportSuperPoint_baseline# from easy_local_features.feature.baseline_deal import DEAL_baseline# from easy_local_features.feature.baseline_dalf import DALF_baseline# from easy_local_features.feature.baseline_aliked import ALIKED_baseline# from easy_local_features.feature.baseline_alike import ALIKE_baseline# from easy_local_features.feature.baseline_disk import DISK_baseline# from easy_local_features.feature.baseline_r2d2 import R2D2_baseline# also a matcherfromeasy_local_features.matching.baseline_lightglueimportLightGlue_baseline# from easy_local_features.matching.baseline_superglue import SuperGlue_baseline# from easy_local_features.matching.baseline_loftr import LoFTR_baselineimportcv2# Load an imageimg=cv2.imread("assets/notredame.png")# Initialize the extractorextractor=SuperPoint_baseline()matcher=LightGlue_baseline()# works with superpoint and disk# Return keypoints and descriptors just like OpenCVkeypoints0,descriptors0=extractor.detectAndCompute(img)keypoints1,descriptors1=extractor.detectAndCompute(img)# Match the descriptorsmkpts0,mkpts1,matches=matcher.match(keypoints0,keypoints1,descriptors0,descriptors1)img=cv2.drawMatches(img,keypoints0,img,keypoints1,matches,None,flags=cv2.DrawMatchesFlags_NOT_DRAW_SINGLE_POINTS)cv2.imshow("Matched",img)cv2.waitKey(0)TODOAdd a setup.py to make it a pip packageMake a general maching classThe idea is to have a class that can match images using any local feature extractor and any matching method.Fix requirements to install automatically with the package (maybe)Add a script to download some datasetsAdd more baselines :)DEALDALFDKMASLFeatR2D2DISKSuperPointSuperGlueLightGlueLoFTRALIKEALIKEDAdd LICENSE fileTest on MAC M1 with CPUTest on Linux with CPUTest with CUDA
Package: easy-locust
Easy-LocustLocust LinksWebsite:locust.ioDocumentation:docs.locust.ioSupport/Questions:Slack signupDescriptionEasy-Locust is an extension tool for Locust. With this tool, you don't need to write locust scripts. What you need to do is just to edit Excel. Easy-Locust will generate locustfile automatically and run it.If you need master-slave mode, you just need to fill Excel Sheet 'Slave', and use --master. The only precondition is to install the same version locustio in each Slave.
Easy-Locust is not necessary for slaves.easy-locust --web --web-port=8899-- Run in web mode, you can config and trigger slave-nodes with this mode.Useeasy-locust --demoto generate an Excel demo, fill it and start your test.Same parameters with locust, so I just introduce the different parameters here:easy-locust -f xxx.xls-- This will transform Excel to locustfile, and run it. You can also use-f xxx.py.easy-locust --xf xxx.xls-- -- This just transform Excel to locustfile, will not start test.easy-locust -f xxx.xls --master -d---dis distributed mode, can automatically run slaves. There is one precondition,
you need write slaves information in Excel at Slave Sheet.easy-locust -f xxx.xls --master -d --boomer----boomerrunning boomer client in slaves, which is compiling by Golang.
In this mode expect_code and expect_str is inoperative. Please keep port 9999 is unused in each slave, when using this mode.OR, use:importeasy_locustdata={"config":{},"apis":[],"auth":{},"user_info":[],"master_ip":"","slaves":[]}locustfile_str=easy_locust.factory(data)Bug reportingOpen a Github issue and follow the template listed there.https://github.com/GuoTengda1993/easy-locustAuthorsGuo TengdaLicenseOpen source licensed under the MIT license (seeLICENSEfile for details).Change Log0.2.1: Easy-locust web mode.0.1.12:content-typesupport.0.1.11: Add boomer client as slave, which has much more preformance.0.1.10: Delete useless code.0.1.9: Support Json to locustfile. And can useeasy_locust.factory(dict)to get strings of locustfile.0.1.6: Optimize locustFileFactory.py0.1.5: Check Response info (status code & expect str) if set "Expect Status Code" in Excel, otherwise not. Rely on locustio>=0.13.5
Package: easylog
The standard library logging package is very powerful, but
does not scaledownwell.Any configuration – even just saving messages to a file
rather than the console – requires a fair amount of setup
or glue code.easylog wraps the standard library, to minimize the amount
of logging-specific code in your own script or application.>>> from easylog import critical, error, warning, debug, info
>>> debug("getFoo requesting %d %s", 42, "answers")
>>> error("getFoo says %d of those %s are lousy!", 19, "answers")
ERROR:easylog.easylog:getFoo says 19 of those answers are lousy!Both messages are captured in the logfile, but only the error
is shown onscreen.If you want to change the logfile name/which messages are
captured/the output format, etc, you can do that with a single call.Alpha version 0.2.0 is available under the Python Software Foundation
License athttp://sourceforge.net/projects/easylog/Please send comments toJimJJewett@yahoo.com.
Package: easylogcli
easylogcli简介easylogcli 是easylog的 Python 客户端实现，用于向服务端发送日志信息，无第三方依赖。需要 Python 版本大于等于 3.6安装pipinstalleasylogcli使用例子fromeasylogcli.easylogimportEasyLogimporttimedeftest():# 创建客户端client=EasyLog(name='log-server',host='127.0.0.1',port=10000,absolute_path='/Users/tiger/develop/tmp/1.txt')# 发送日志client.send(message='下载图片成功')# 模拟持续运行time.sleep(0.1)# 关闭客户端client.close()if__name__=='__main__':test()输出的日志格式例子：[Tiger-3.local 172.16.4.251] INFO - 2020-03-06 14:41:54.517499 - (easylog.py:97) - 下载图片成功
[Tiger-3.local 172.16.4.251] INFO - 2020-03-06 14:41:54.517622 - (easylog.py:97) - 下载图片成功
[Tiger-3.local 172.16.4.251] INFO - 2020-03-06 14:41:54.517733 - (easylog.py:97) - 下载图片成功
[Tiger-3.local 172.16.4.251] INFO - 2020-03-06 14:41:54.517814 - (easylog.py:97) - 下载图片成功
[Tiger-3.local 172.16.4.251] INFO - 2020-03-06 14:41:54.520207 - (easylog.py:97) - 下载图片成功
[Tiger-3.local 172.16.4.251] INFO - 2020-03-06 14:41:54.520277 - (easylog.py:97) - 下载图片成功日志格式解析：[主机名 IP] INFO - 日期时间 - (文件名:行数) - 日志内容一些细节客户端和服务端之间自定义了一个简单的消息体。消息体例子：absolute_path:/Users/tiger/develop/tmp/1.txt
content:[Tiger-3.local 172.16.4.251] INFO - 2020-03-06 11:38:32.616777 - (easylog.py:97) - 下载图片成功
----------消息体字段解析：absolute_path: 日志保存路径content:       日志内容----------:    分隔符TODOCIlogging 代替 print批量发送发送失败时报警失败重试...
Package: easylogconfig
easylogconfigThis python library provides simple wrapper for standart logging module.If you want something more than "logging.basicConfig", but don't want to read a lot ofdocumentationand write a lot of code.WARNINGSince v0.2 python 2 is not supported anymore.UsageYou can find examples in ./examples directoryimportloggingimporteasylogconfiglog=logging.getLogger(__name__)# print messages to the stdout, add debug leveleasylogconfig.auto(debug=True)# or print messages to the syslogeasylogconfig.auto(syslog_tag="example_tag")# or log messages to remote syslog servereasylogconfig.auto(syslog_tag="example_tag",syslog_address=("127.0.0.1",514))# or print messages to the file without datetime but with thread nameseasylogconfig.auto(file_name="/var/log/example.log",file_backup_count=30,datetime=False,thread=True)log.info("info message")log.debug("debug message")# output format:# 2019-03-22/10:17:28 INFO    info messageConfigurationLibrary provides one simple functionautowith arguments:formatter arguments:debug=False: add debug messages to output?thread=False: add thread names to messages?datetime=True: add datetime to messages?level=False: add level names to messages?SysLogHandlerarguments:syslog_tag=None: if set to str, log messages to syslog with this tagsyslog_address="/dev/log": syslog server address. By default, it sends syslog messages via/dev/logfile. It can be set to string (ip address or hostname, in this case default 514 port
is used), or to Tuple[str, int] (likelogging.handlers.SysLogHandler)TimedRotatingFileHandlerarguments:file_name=None: if set to str, log messages to this tilefile_when="midnight": file rotating timefile_backup_count=7: keep last filesLog handlers configuration rules:StreamHandlerwill be used ifsyslog_tagorfile_nameare omitted or empty stringsSysLogHandlerwill be used ifsyslog_tagis set to none-empty stringTimedRotatingFileHandlerwill be used iffile_nameis set to none-empty stringValueErrorwill be raised if bothsyslog_tagandfile_nameare set to none-empty stringInstallationpython3-mpipinstall-Ueasylogconfig# orpython3-mpipinstall-Ugit+https://github.com/tierpod/easylogconfig#egg=easylogconfigDevelopmentmakevenvsource./venv/bin/activate(venv)makeinit-devinit
Package: easylogger
easyloggereasylogger is the most simple way to write your logs . just make alogsobject , we can handle session counting and count logs and 6 level of importance for logs (0,5).logsthe main method just write easylogger.logs("your file dest (default is ./log.txt)","your log name","your log details")
for example
a=easylogger.logs("./click.log","clicks log","here we have log of clicks from 2012")logwriteogger.logs.logwrite is the only function have three parameters title ,message and degree (0,5)
for example
a.logwrite("file IO","all of sdcard files are corrupted")degree0>>trace
1>>debug
2>>info
3>>warn
4>>err
5>>fatalSample Codeimport easylogger

a=easylogger.logs("./xapp.log","X app log","all of things happening in X app is written here")
a.logwrite("mouse move","127*148 RU",0)
a.logwrite("hello","127*148 RU",0)

a=None #simulating when app is closed

a=easylogger.logs("./xapp.log","X app log","all of things happening in X app is written here")
a.logwrite("mouse move","127*148 RU",0)
a.logwrite("hello","127*148 RU",0)Sample Outputxapp.log:**************** X app log ****************
----------------
all of things happening in X app is written here
----------------
================ Session:0[2018-06-15 04:00:05.612757] ================
[(0,{2018-06-15 04:00:05.612954}) trace >>> mouse move : "127*148 RU"]
[(1,{2018-06-15 04:00:05.613090}) trace >>> hello : "127*148 RU"]
================ Session:1[2018-06-15 04:00:05.613332] ================
[(0,{2018-06-15 04:00:05.613445}) trace >>> mouse move : "127*148 RU"]
[(1,{2018-06-15 04:00:05.613564}) trace >>> hello : "127*148 RU"]
Package: easy_logger
A python package for logging easily.Installation$ pip install easy_loggerUsagefromeasy_loggerimportLoggerlogger=Logger().get_logger(__name__)logger.info('logger')APIclassLogger(object):defget_logger(name):"""The same as get_stream_logger."""passdefget_stream_logger(name):"""Get logger which has add streamHandler. Output log message to stream.

        :param str name: logger name
        """passdefget_file_logger(name,filepath):"""Get logger which has add fileHandler. Output log message to specify file.

        :param str name: logger name
        :param str filepath: the log file path
        """passdefget_both_logger(name,filepath):"""Get logger which has both add streamHandler and fileHandler.
        Output log message to stream and specify file.

        :param str name: logger name
        :param str filepath: the log file path
        """passBetterIf you feel anything wrong, feedbacks or pull requests are welcomed.
Package: easylogging
easyloggingSimple and Easy Logger lib for pythonREQUIREMENTSPython-3 -->http://www.python.org/download/NotesNow This lib isStable.I am created this lib because i want use easy logging lib.Important(To Work --logfile): You need to put easylogging.py in same folder with your main file.Known Bug: You need to place easylogging.py next to the file that uses this lib.InstallationClone this repo:$ git clone https://github.com/AI35/easyloggingUsing pip:$ pip install easyloggingUsageFirst you need import lib for your file and Set name :import easylogging
  
  easylogging.logname(__file__)Use the functions you need:easylogging.critical(msg)easylogging.error(msg, exc_info)default: exc_info=Falseeasylogging.warning(msg)oreasylogging.warn(msg)easylogging.info(msg)easylogging.debug(msg)You can start logging from Cmd or PowerShell :$ Python yourfile.py --logging --logfile
  
  usage: youefile.py [--logging] [--logfile]
  
  optional arguments:
    --logging            Display log in Console
    --logfile            Create log fileAfter first run you will see new filelogging.conf:Changelevelnumber to display log in consolewithout--logging (0 display all level).level=50Changefile_levelnumber to set level in log filewith--logfile (50 hide all level).- This option work on --logfile without use --logging (if use --logging file write all level)file_level=0in Version 1.1.0: Now you can show and hide error info fromlogging.conf:- Show Error info (easylogging.error(msg, exc_info))- True or False or None- * (None) means that exc_info takes the value entered from the user, example: easylogging.error(msg, exc_info=True)exc_info=Nonein Version 1.1.2: Fix DeprecationWarning:- Fix warn functionin Version 1.1.3: Fix input msg:- You can know input (int or any value) , example:easylogging.error(msg) ; msg = 10in Version 1.2.0: Important Fixes:- Youdon'tneed to place easylog.py next to the file that uses this lib.- File level in logging.conf work on --logfilewithout use --logging(if use --logging file write all level)- V 1.2.0 is stable version and ready to use.Level table :LevelNumeric valueCRITICAL50ERROR40WARNING30INFO20DEBUG10NOTSET0You can see test filetest.pyto know how this lib is work.LICENSECopyright 2018 LinePY - ALI B OTHMAN(AI35), Inc.

easylogging

   Licensed under the GNU License , you may not use this
   file except in compliance with the License.
   You may obtain a copy of the License at :

   https://github.com/AI35/easylog/blob/master/LICENSEALI .B .OTH - ORG : LinePY
Package: easy-logging-config
easy_logging_conifgAn easy to use logging library which returns a basic logging configuration for any python application.Class LogConfiguration accepts the root path of location to store log recordsOn Initialization, the default components(filters, formatters, handlers and loggers) are populated. The get() method fetches   the complete configuration.The class has four methods to fetch logging components. These methods can be overridden by the class which extends
"LogConfiguration", to add custom components to existing default components.
Package: easy-login
This module will help you to login in all social networking accounts like facebook ,instagram ,linkedin ,reddit and twitter from your python IDE without reaching to the sites .It will automaticlly login your social accounts in a separate chrome driver window .How does it work ?Step I -You have to install this package login-all, selenium package and chrome webdriver.Step II-Then type -> from easy_login import login in your script.Step III-obj=login(username ,password ,address_of_chrome_webdriver)Step IV -Start Loging in  your accounts .obj.facebook()
obj.instagram()
obj.twitter()
obj.reddit()
obj.linkedin()Step V- Done .Note:
1-Uername and password must be of same account which you have to Login .2-Address must be in format - C:/Users/Vasu Gupta/chromedriver_win32/chromedriver
Package: easy-lottery-tools
easy_lottery此抽奖程序只需要配置result.csv
格式就是一行，一个人名+编号，控制台版本用法如下：首先在洛谷下载排名信息的csv文件在控制台（请不要用ide运行）输入：pythonmain_cli.py首先程序会自动读取并打印成绩信息，成绩为权重，然后等待键盘输入命令介绍：info：输出当前成员信息；del user_id：手动删除成员；roll prize num：开始抽奖，抽num次，默认以0.05秒的时间间隔滚动，滚动期间按下Ctrl+C停止滚动，抽下一位。每抽出一个用户会自动从抽奖列表中剔除该用户；pub：打印获奖信息。图形化版本用法如下：使用 Python 3.10 及以上版本并安装 PyQt6 库，双击main_gui.pyw即可。
Package: easy-lottery-zs
easy_lottery此抽奖程序只需要配置result.csv
格式就是一行，一个人名+编号，控制台版本用法如下：首先在洛谷下载排名信息的csv文件在控制台（请不要用ide运行）输入：pythonmain_cli.py首先程序会自动读取并打印成绩信息，成绩为权重，然后等待键盘输入命令介绍：info：输出当前成员信息；del user_id：手动删除成员；roll prize num：开始抽奖，抽num次，默认以0.05秒的时间间隔滚动，滚动期间按下Ctrl+C停止滚动，抽下一位。每抽出一个用户会自动从抽奖列表中剔除该用户；pub：打印获奖信息。图形化版本用法如下：使用 Python 3.10 及以上版本并安装 PyQt6 库，双击main_gui.pyw即可。
Package: easy-lottery-zsK
easy_lottery此抽奖程序只需要配置result.csv
格式就是一行，一个人名+编号，控制台版本用法如下：首先在洛谷下载排名信息的csv文件在控制台（请不要用ide运行）输入：pythonmain_cli.py首先程序会自动读取并打印成绩信息，成绩为权重，然后等待键盘输入命令介绍：info：输出当前成员信息；del user_id：手动删除成员；roll prize num：开始抽奖，抽num次，默认以0.05秒的时间间隔滚动，滚动期间按下Ctrl+C停止滚动，抽下一位。每抽出一个用户会自动从抽奖列表中剔除该用户；pub：打印获奖信息。图形化版本用法如下：使用 Python 3.10 及以上版本并安装 PyQt6 库，双击main_gui.pyw即可。
Package: easylsb
This is a simple Python package for steganographyNow this package can automatically detect the encoding of the hidden text using the '-a' argument.
Code to hide information in the given image:importlsbfromPILimportImageimportnumpyasnpimg=Image.open('test.png')img=np.array(img)info=b'Some information'hidden=lsb.lsbenc(img,info)img_hidden=Image.fromarray(hidden)img_hidden.save('hidden.png')# Must be a PNG,BMP,etc., not JPEG or WEBPCode to get the hidden information from the given image:importlsbfromPILimportImageimportnumpyasnpimg=Image.open('test.png')# Must be a PNG,BMP,etc., not JPEG or WEBPimg=np.array(img)info=lsb.lsbdec(img)print(info)RSARSA is now supported in easylsb 1.0.7.
Code:importlsbfromPILimportImageimportnumpyasnpimportrsapub,priv=rsa.newkeys(200)img=Image.open('test.png')img=np.array(img)info=b'Some information'# Hidehidden=lsb.lsbenc(img,info,rsakey=pub)img_hidden=Image.fromarray(hidden)img_hidden.save('hidden.png')# Must be a PNG,BMP,etc., not JPEG or WEBP# Recoverinfo=lsb.lsbdec(hidden,rsakey=priv)print(info)# b'Some information'It's very easy to use the StegSolve tool to get the hidden information, but easylsb package allows you to encrypt the information using DES or RSA.WARNING: Python 2 is unsupported by easylsb since easylsb 1.0.7, if you're using Python 2 and want to install this package, you should use the command "pip install easylsb==1.0.6"
Package: easymail
easymail========[![Build Status](https://secure.travis-ci.org/mfussenegger/easymail.png?branch=master)](https://travis-ci.org/mfussenegger/easymail)The email package in pythons standard library is pretty low level.Easymail aims to add an abstraction layer on top that sets some (hopefully) sanedefaults.These defaults include:* using utf-8 encoding by default.* important headers (like Date)A simple example:from easymail import Emailfrom smtplib import SMTPe = Email('My Name <mymail@somedomain.com>', 'recipient@otherdomain.org')e.subject = 'hello world'e.body = 'with some non-äscii charöcters'smtp = SMTP('mymailserver.com')smtp.sendmail(*e.args)Slightly more advanced:from easymail import Email, Attachmentfrom smtplib import SMTPe = Email('My Name <mymail@somedomain.com>', 'recipient@otherdomain.org')e.subject = 'hello world'e.body = 'with some non-äscii charöcters'e.attachments.append(Attachment('./path/to/picture.png'))e.attachments.append(Attachment('./path/to/document.pdf'))smtp = SMTP('mymailserver.com')smtp.sendmail(*e.args)Dependencies============Pure Python 3.5+License=======Easymail is licensed under the MIT license.
Package: easymailsender
EasyMail ClassMake Send Mail Easy In Python 3try:#Import EasyMailimporteasyemailexcept(ModuleNotFoundError,ImportError):#Use Folder Versionfrom.importeasymail1銆丼end An Plain EmaildefsendPlain(client,receivers,text="",subject="",sender_name=None,receivers_name=None,encoding="utf-8"):'''Send Plain Email:param client:EMAIL CLIENT(SMTPClient):param receivers:the Receivers(str or list or tuple or frozenset):param text:Email HTML Body:param subject:Email Subject:param sender_name:Email Sender's Name(From,Default value is sender Email Address):param receivers_name:Email Receivers' Name(To,Default value is 1st Receivers):param encoding:Text,Subject,sender_name,receivers_name 's encoding,default is 'utf-8':return:Hasn't return'''passYou can use this futc. to send an email,like thisfromeasymailimport*client=SMTPClient("smtp.abc.com")#Your Email Serverclient.login("def@abc.com","123456")#Your Email And Your PasswordsendPlain(client,["ghi@abc.com"],"The Subject","HelloWorld","ghi","def","utf-8")The HTML Futc.:defsendHTML(client:SMTPClient,receivers,text="",subject="",sender_name=None,receivers_name=None,encoding="utf-8"):'''Send Plain Email:param client:EMAIL CLIENT(SMTPClient):param receivers:the Receivers(str or list or tuple or frozenset):param text:Email Body:param subject:Email Subject:param sender_name:Email Sender's Name(From,Default value is sender Email Address):param receivers_name:Email Receivers' Name(To,Default value is 1st Receivers):param encoding:Text,Subject,sender_name,receivers_name 's encoding,default is 'utf-8':return:Hasn't return'''passHtml is similar to the function of sending plain text, so I won't repeat it here.send Any Text:defsendAnyText(client:SMTPClient,receivers,typeof="plain",text="",subject="",sender_name=None,receivers_name=None,encoding="utf-8"):'''Send Plain Email:param client:EMAIL CLIENT(SMTPClient):param receivers:the Receivers(str or list or tuple or frozenset):param typeof:Mail Body Type(default:plain):param text:Email Body:param subject:Email Subject:param sender_name:Email Sender's Name(From,Default value is sender Email Address):param receivers_name:Email Receivers' Name(To,Default value is 1st Receivers):param encoding:Text,Subject,sender_name,receivers_name 's encoding,default is 'utf-8':return:Hasn't return'''passIt's similar too!