Saravanan666/pypi-org huggingface dataset:
Package: easy-multip
easy_multipeasy_multip is a small tool designed to simplify Python multiprocessing capabilities.Current Featureseasy_multip.map(func, arg_group, leave_one_cpu_free=True)map() or list comprehension type functionality that is parallelized using multiprocessing and includes a progress barUsage is similar to the below constructs:list(map(func,arg_group))or[func(arg)forarginarg_group]easy_multip.doloop(func, arg_group, leave_one_cpu_free=True)for loop equivalent that runs a function that returns NoneUseful in situations like file processing where each operation is expensive and totally independentAllocates jobs evenly among processors and provides a progress bar... of sortsUsage is similar to the below construct:forarginarg_group:func(arg)easy_multip.decorators.use_multip(func, leave_one_cpu_free=True)Decorator providing capability of quickly adding multiprocessing to a function operating on a listONLY for functions taking a list first arg that returns a list or NoneDO NOT USE@decoratorsyntax!  Must use the following pattern:def_func(list_arg,*args,**kwargs):# stuff happensreturn[](orNone)func=use_multip(_func)LicenseMIT
Package: easynas
EasyNAS - a simple and effective CNN architecture generatorPurposeGiven a dataset, this python package will utilize genetic algorithms and Pytorch to optimize the structure a simple CNN for the task of classification. With simple meaning that the generated architecture is built of a series of layers, where each layers input is the output the previous one.InstallationpipinstalleasynasInput data formatThe input data should be split into training and validation sets, with the following dimensions:[#samples, #channels, height, width]This means that 2D image-like data is the expected input. If dealing, for example, with 1D time series data that contains a 'channels' dimension, one should include an extra dimension as such (example with numpy):X=X[:,:,:,None]Usage examplefromeasynas.genetic_algorithmimportEasyNASGAimporttorchvisionfromsklearn.model_selectionimporttrain_test_splittrain_data=torchvision.datasets.MNIST('/files/',train=True,download=True)test_data=torchvision.datasets.MNIST('/files/',train=False,download=True)X_train=train_data.data[:,None,:,:].float()y_train=train_data.targets.float()X_train,X_val,y_train,y_val=train_test_split(X_train,y_train,test_size=0.2,random_state=42)easyga=EasyNASGA(X_train,y_train,X_val,y_val,generations=5,population_size=10,max_epochs=1,weight_inheritance=True)easyga.ga.run()best_individual=easyga.get_best_individual()print(f'best individual:{best_individual}')CreditsAnyone using this package for research/production purposes is requested to cite the following research articles:Rapaport, E., Poese, I., Zilberman, P., Holschke, O., & Puzis, R. (2020).
Predicting traffic overflows on private peering.
arXiv preprint arXiv:2010.01380.https://arxiv.org/abs/2010.01380Rapaport, Elad, Oren Shriki, and Rami Puzis.
"EEGNAS: Neural Architecture Search for Electroencephalography Data Analysis and Decoding."
International Workshop on Human Brain and Artificial Intelligence.
Springer, Singapore, 2019.https://link.springer.com/chapter/10.1007/978-981-15-1398-5_1
Package: easy_net_tf
easy_net_tfA tensorflow-based network utility lib.featuresTensorflow basedpython3installpip install easy_net_tfdependencetensorflow,numpy,cv2contentnn (nerual network)fully connect net:from easy_net_tf.nn.fully_connect_net import FullyConnectNetmobilenet:from easy_net_tf.nn.mobile_net_v2 import MobileNetV2cnn:from easy_net_tf.nn.cnn import CNNutilityaccuracy:from easy_net_tf.utility.accuracy import UtilityAccuracyfile:from easy_net_tf.utility.file import UtilityFilevariable:from easy_net_tf.utility.variable import UtilityVariableanchor:from easy_net_tf.utility.anchor import UtilityAnchorbounding:from easy_net_tf.utility.bounding import UtilityBoundingloss:from easy_net_tf.utility.bounding import UtilityLossimage:from easy_net_tf.utility.image import UtilityImageslide_window:from easy_net_tf.utility.slide_window import UtilitySlideWindowlicenseMIT
Package: easynewsletter
easynewsletterNewsletter module with customizable, scheduler and self-database. It usesred-mailto send mail and scheduler forschedule.FeaturesA simple API for blanning newslettersCustomizable self-databaseMultiple message and scheduler supportBe used in web applications (E.g: with Flask)A cross-platform moduleTested on Python 3.9InstallationTo install easynewsletter, run the following command from the command line:pip3install--usereasynewsletterExampleThis example sends the "Science Weekly" newsletter to Tesla and Feynman every Monday.importeasynewsletterasenlroot=enl.Newsletter(enl.Email(sender="me@example.com",password="password",host="smtp.example.com",port=123,),enl.Database())root.add_subscriber([enl.Subscriber("tesla@example.com"),enl.Subscriber("feynman@example.com"),],)message=enl.Message(subject="Science Weekly",text="What is evolution?",)root.add_rule(message,enl.Schedule.every().monday)whileTrue:root.run_pending()Docs and Changelogeasynewsletter's documentation lives ateasynewsletter.readthedocs.ioand changelog lives atChangelog.LicenseThis project is licensed under the GPL-3.0 - see theLICENSEfile for details.
Package: easy-nhl
Easy NHLFull documentation for the package is avalaible athttps://easy-nhl.readthedocs.io/en/latest/OverviewEver had a project idea that looks to take advantage of the NHL API, but you don't know where to start
because there's no documentation?Look no further!This api wrapper was developed to make grabbing and using that data a snap!Here's what you get:A few classes to make this simpleBuilt in methods on those classes, to make the data gathering a breezeRequirementsPython (3.5, 3.6, 3.7, 3.8)Installationpip install easy-nhlExamplefromeasy_nhlimportTeamprint(Team().teams)# This will give you a payload of all current and former NHL teams (A list of dicts).# You can then use the Team class to get rosters and more information as follows:sabres=Team(7)print(sabres.roster())# You can get historical rosters as well by passing in a season.# All of this is gone over in more detail in the documentation....print(sabres.roster('20052006'))
Package: easy-notifier
# easy_notifiertruly easily notify your process information when it finished## Description* Easy_notifier is a decorator that supports time-consuming, trial-and-error integrations.* It can tell the start time, finish time, status, and return value when your process finished.* It can tell your process end with slack, e-mail, or mac pop-up.* Usage is very easy. only write `@easy_notifier` on your method.Japanese document is [here](http://chie8842.hatenablog.com/entry/2018/01/21/152626).## Installation`pip install easy_notifier` or build from source.```git clone https://github.com/chie8842/easy_notifiercd easy_notifierpip install . -r requirements.txt```## UsageOnly three steps to use easy-notifier.1. put config.ini at your current directory2. write `@easy_notifier` on the method at your python script3. execute your python script```@easy_notifierdef example_func()......```You can use another file name with args as below.```@easy_notifier(~/.easy_notifier.cfg)def example_func()......```## ConfigurationsPut configuration file and set according to [config.ini.sample](https://github.com/chie8842/easy_notifier/blob/master/easy_notifier/config.ini.sample)Explaination for each parameter is below.* envyou can set ec2 or gce or local.If you set ec2, `Name` tag is used for instance_name at notification.Else if you set local, `hostname` is used for instance_name at notification.gce is not integrated now.* process_nameYou can set any string which explain your process.If you don't set this parameter, `func.__name__` will used as the process_name.* notify_slackNotify slack when this parameter is true/yes.* notify_macNotify mac pop-up when this parameter is true/yes.This parameter is ignored on Linux and Windows.* notify_gmailNotify from your gmail address to any other email address.It is needed to go to this link and select Turn On when you first use with your gmail account.https://www.google.com/settings/security/lesssecureapps* incoming_webhookSet your incoming webhook of Slack here whe you set notify_slack on.* slack_idSpecify slack_id to mention when you set notify_slack on.* channelSet the channel for notification when you set notify_slack on.* from_addressSet your gmail address when you set notify_gmail on.* from_passwordSet your gmail password when you set notify_gmail on.* to_addressSet any email address to notify when you set notify_gmail onHere is example of config file.```[easy_notifier]env = ec2incomming_webhook_url = https://hooks.slack.com/services/aaa/bbbslack_id = chie-hayashidaprocess_name = testchannel = chie_test```## Notification Result Sample![Slack succeeded](img/notify_slack_succeeded.png)![Slack failed](img/notify_slack_failed.png)![Gmail succeeded](img/notify_gmail_succeeded.png)![mac pop-up](img/notify_mac_popup_succeeded.png)
Package: easynotify
EasyNotifyThis package allows you to post messages with bots easily.InstallInstall this package:pip install easynotifyIf it does not work, try:pip install git+https://github.com/CauchyComplete/EasyNotifySlackBotIn your slack workspace, click the top left menu > Settings & administartion > Manage apps.Search for "Incomming Webhooks" and click "Add to Slack".Choose a channel you want to use and click "Add Incoming Webhooks integration".Now you can post onto this workspace using this library.import easynotify
bot = easynotify.SlackBot("https://hooks.slack.com/services/...")  # Your Webhook URL
bot.post("Test Message", username="SlackBot", icon_emoji=":ghost:", print_also=True)
Package: easy-notifyer
Easy NotifyerEasy bug reporter for small projects. Zero dependencies - download and run. Asyncio support.DocumentationInstallpip install easy-notifyerExample usage:Telegram reporterfromeasy_notifyerimporttelegram_reporterexception_telegram_reporter=telegram_reporter(token="123456789:QweRtyuWErtyZxcdsG",chat_id=123456789,# can be list from chat_id: [123456789, 876522345], or @usernameservice_name='qwe')@exception_telegram_reporter(exceptions=OSError)deffoo():...raiseOSErrorfromeasy_notifyerimporttelegram_reporterexception_telegram_reporter=telegram_reporter(token="123456789:QweRtyuWErtyZxcdsG",chat_id="@my_super_nickname",api_url='https://your_super_url_api.com/')@exception_telegram_reporter(exceptions=OSError,# can be tuple from exceptionsas_attached=True,# to send traceback as a filefilename='bar_report.log',# custom filename for attachheader='Testing for bar',# first line in message-report. default: "Your program has crashed ☠️"datetime_format="%d- %H:%M:%S",# format datetime for report)asyncdefbar():...raiseOSErrorCan be using paramsdisable_web_page_previewanddisable_notification:fromeasy_notifyerimporttelegram_reporterexception_telegram_reporter=telegram_reporter(token="123456789:QweRtyuWErtyZxcdsG",chat_id=["@superadmin1","@superadmin2"],)@exception_telegram_reporter(header='Test request to http://example.com',disable_web_page_preview=True,# not worked if as_attach=Truedisable_notification=True,)deffoo():...raiseValueErrorCan be using basic client:fromeasy_notifyerimportTelegramdefmain():...telegram=Telegram()telegram.send_message('hello from easy notifyer')img=open('my_image.jpg','rb')telegram.send_attach(img,filename='my_image.jpg')asyncdefmain_async():...telegram=Telegram()awaittelegram.async_send_message('async hello from easy notifyer')img=open('my_image.jpg','rb')awaittelegram.async_send_attach(img,filename='my_image.jpg')Mail reporterfromeasy_notifyerimportmailer_reporterexception_telegram_reporter=mailer_reporter(host='smtp.example.org',port=587,login='login@example.com',password='qwerty12345',from_addr='login@example.com',to_addrs='myemail@gmail.com, mysecondmail@mail.com',ssl=False,service_name='super app')@exception_telegram_reporter(exceptions=ValueError)defbar():...raiseValueErrorfromeasy_notifyerimportmailer_reporterexception_telegram_reporter=mailer_reporter(host='smtp.example.org',port=587,login='login@example.com',password='qwerty12345',from_addr='login@example.com',to_addrs='myemail@gmail.com, mysecondmail@mail.com',ssl=False,)@exception_telegram_reporter(exceptions=OSError,# can be tuple from exceptionsas_attached=True,# to send traceback as a filefilename='bar_report.log',# custom filename for attachheader='Testing for bar',# first line in message-report. default: "Your program has crashed ☠️"subject='hello from foobar',# set custom subject for messagedatetime_format="%d- %H:%M:%S",# format datetime for report)asyncdeffoobar():...raiseOSErrorCan be using basic client:fromeasy_notifyerimportMailerdefmain():...mailer=Mailer()img=open('my_image.jpg','rb')mailer.send_message(message='hello from main',subject='custom subject for message',attach=img,filename='my_image.jpg',)
Package: easy-notion-api
easy-notion-apiUseeasy-notion-apifor handy Notion API!Unofficial Python 3 client for Notion APIEnglishInstallationpip install easy-notion-apiBefore StartTo use Notion API, you must get api key fromnotion integrations page.And then, create new database in your notion workspace.Click the database's setting and click 'copy link to view'Get database id from copied link before '?v='https://www.notion.so/__here_is_database_id__?v=uuid&pvs=4UsageStartfrom notion import Notion

client = Notion("your_api_key", "database_id")Create new page in your dbdata = {
    "school": "maycan_school", # school column type in notion is title
    "message": "example message" # message column type in notion is rich_text
    "students": ["Hans", "Woody"] # students column type in notion is people
}
client.create_page_in_db(data)create_page_in_db method returns dictionary like{
    is_created: bool,
    page_id: str, # if is_created is False, then page_id is not given and 'detail' key returned with error message
}data formattitle, rich_text, number, selecet, statuskey: valueBe careful! status value must be predefined in notion app.multi_select, peoplekey: [value1, value2 ...]   (value must be user's nickname if people)datekey: [value1, value2]The second value(value2) means the end date. If None, only the start date is registered.value format -> "YYYY-MM-DD" or "YYYY-MM-DD hh:mm:ss"Update pagedata = {
    "message": "i want to go home"
}
client.update_page("page_id", data)update_page method returns True (when success), else raise Error with message from NotionRetrieve page propertiesclient.get_page_properties("page_id") # returns dictionaryFeaturesCreate page in DatabaseUpdate pageRetrieve page propertiesQuery Database
Package: easyo2p
Oracle to PostgreSQL Migration with Pythoneasyo2pis a Python package to migrate an Oracle database schema to PostgreSQL.
Containing functionality to connect to both source and target databases,easyo2peases customised migrations using its functionality within the Python environment.Requirementseasyo2pis written and tested on Python 3.10,
using cx_Oracle and psycopg2 database connections modules.The package can be found onGitHubandPyPI,
so naturally it can be installed withpippip install easyo2pIt has been tested with various Oracle versions from version 12c,
and PostgreSQL from 14, but is expected to work with aAudienceeasyo2pis for you if:You want to copy a schema, or multiple schemas, in Oracle to PostgreSQL.You need no or little automated conversion of PL/SQL functions, procedures or packages.You are familiar enough with Python to add any required customisations.OperationThe package can connect to both the Oracle and PostgreSQL servers.
From a specified schema, it will create the objects in PostgreSQL and migrate the data.easyo2palso has an option to create text files,
so that the migration can be backed-up or rerun later.To ease continuity between Oracle and PostgreSQL development,
and to allow our PL/SQL code to run in both Oracle and PostgreSQL,
some additional objects are created to mimic Oracle functionality in PostgreSQL.Getting StartedThe tutorial covers examples of theeasyo2pfunctionality,
so that it can then be applied for specific migrations.LicenceThis software is released under the MIT licence
Package: easyofd
easyofd关于这个库：鉴于目前python解析ofd没有啥好用的库所以决定自己整一个。已实现功能 ：1 解析ofd2 ofd转pdf3 ofd转图片4 pdf转ofd  -暂不使用电子解析版本5 添加gui 工具实现上述功能6 jpg2ofd jpg2pfd关于 jb2格式图片解析
使用了第三方库 jbig2dec 去读取jb2格式图片 参考下面链接安装使用jbig2dechttps://github.com/rillian/jbig2dec​:hand:实现参考文档项目链接：https://github.com/renoyuan/easyofd安装pipinstalleasyofd使用参考 test\demo.py 文件 目前所有功能在这个里面都有体现ps:0 代码使用有问题，可以先看 test\demo.py 文件1 对于使用有任何疑问，欢迎提各种Issue.2 目前ofd 文件使用尚未普及，作者接触的文件也不多，遇到无法解析的文件，可以发我邮箱(renoyuan@foxmail.com)，有时间会去优化版本.3 本库对你有所帮助可以star 支持一下作者，或者fork。版本规划:1.0 计划提高解析的通用性，如果有解析失败的文件可以提供给作者优化这个工具库1.1 pdf 转ofd 的电子解析版本优化，目前存在一些生成ofd电子版本 wps 无法正常解析的情况（图片版本不存在） ，有熟悉wps的同学希望也能提供一些建议1.2 完善gui
Package: easy-open-ai
Welcome to my OpenAI Playground!MakingOpen AIeven easier.STILL ACTIVELY DEVELOPINGHow to playpip install easy-open-aiin your working folder, create.envfile withOPENAI_API_KEY=, or make such environment variableenjoy!from easy_open_ai import...Version 0.1.6get_picture(text, save=True)(as b64_json string)get_n_pictures(text, n=3)get_answer(question)correct_grammar(text)Version 0.1.7get_picture_url(text)(url lives 1 hour)get_n_pictures_urls(text, n=3)is_harmful_text(text)(sometimes ignores censorship escaping: '@' instead of 'a', etc)how_many_text_tokens(text)(most of this package works with text no longer than 1024 text-tokens, it's recommended for validating the text length)sum_up_as_haiku(text)get_poem(text)get_answer_as_poem(question)autocomplete_text(text)translate_text(text, language='Ukrainian')get_answer_with_instruction(question,instruction, chaos_coefficient=0.5, model="gpt-3.5-turbo", max_tokens=1024)Version 0.1.8ADDED LIVE TEXT DISPLAYINGget_answer_with_instruction_stream(question)(it's a generator)to get chatGPT-like live text generation, add_streamto the name, for example,aget_answer_as_poem_stream(question)!not all of the available text functions have this yetVersion 0.1.9Automatic documentation for your function andFastAPI endpointsin a python file withdocstring file_name.pyterminal command (ordocstring path\to\file_name.py). If the docstring is already present, it willNOToverwrite it.More easy functions coming soon!Forasyncversion of a function, addain front, for example,aget_picture(text)instead ofget_picture(text).
Package: easyOpenWeather
easyOpenWeather moduleThis module is used to get or print the weather deatils using open weather API easilyinstall module using pip commandpipinstalleasyOpenWeatherexternal dependencies required -requestspipinstallrequeststabulatepipinstalltabulateTo import in project -fromeasyOpenWeatherimportmoduleThen make a object instance of WeatherDataClassobj=module.WeatherDataClass()Now you need to at least set the city name and api key firstobj.setCityName("london")obj.setApiKey("fe82651e607e4******ba45e39aa7e17")To know how to get your own api key from open weatherclick hereNow you need to pass a list containing attributes for which you need weather dataList Attributes -temp        		-> for temperature in kelvintempInC     		-> for temperature in celciustempInF     		-> for temperature in ftempMin     		-> for min temp - unit is decided from abovetempMax     		-> for max temp - unit is decided from abovepressure			-> for pressurehumidity			-> for humiditywind speed			-> for wind speedwind direction 		-> for wind directiondescription  		-> for description - like clear sky etcNote - use only one at a time from temp , tempInC , tempInFAll output data is in SI unitsTo set list Use -listPass=["tempInC","tempMin","tempMax","pressure","humidity","windSpeed","windDirection","clouds","description"]obj.setList(listPass)To get data in dictionary format -obj.getInfo()The function will return a dictionary.Sample dictionary that you will get for listPass = ["tempInC" , "tempMin" , "tempMax" , "pressure" , "humidity" , "windSpeed" , "windDirection" , "clouds" , "description"] :{'tempInC': 11.01, 'tempMin': 10.71, 'tempMax': 11.82, 'pressure': 998, 'humidity': 53, 'windSpeed': 8.7, 'windDirection': 260, 'clouds': 9, 'description': 'clear sky'}This module also include a inbuilt function to directly print the data in a tabular formatobj.printData()Other methods -obj.setStringKey(stringKey) - To set custom api url. Default url -https://api.openweathermap.org/data/2.5/weather?q=Some getters -obj.getStringKey()obj.getApiKey()obj.getCityName()Sample program -fromeasyOpenWeatherimportmoduleobj=module.WeatherDataClass()obj.setCityName("london")obj.setApiKey("fe82651e607e46db61dba45e39aa7e17")listPass=["tempInC","tempMin","tempMax","pressure","humidity","windSpeed","windDirection","clouds","description"]obj.setList(listPass)obj.printData()Contibute -Post any issues on githubCheck out code on github
Package: easyorm
This is a simple example package. You can useeasyormeasyorm is a basic simple ormlist of database :sqlitemysqlmongodbCreate new modelpython manager.py modelnom du module : <new_module>encodage utilisé : utf-8mode de base de données : (db_sqLite_source ou db_mysql_source)nom de la base de données : (nouvelle_base_de_données)nom de la propriété : (nouvelle_propriété ou entre pour quitter)type de propriété : (string, integer, boolean)taille : (valeur_entière)valeur par défaut : (facultatif)utiliser comme valeur unique ? (True or False)valeur doit être obligatoire ? (True or False)description de la propriété : (facultatif)method list of modelget()add()findOne(parms :id)find()remove()execute(query)liste des datasource1- db_mysql_source2- db_sqlite_source3- db_mongo_sourceliste des types de variable prise en compte1- string2- integer3- boolean
Package: easyos
A convenience-dictionary of common operating-system information needed while writing code.Update 4-Jan 2015: Moved support to Python 3.xGetting easyos:Simply:pipinstalleasyosUsing easyos is easy:To list all the keys, simply import and printeasyos:$python>>>frompprintimportpprint>>>fromeasyosimporteasyos{'current_gid':20,'current_uid':501,'current_user':'tfisher','current_user_desktop':'/Users/tfisher/Desktop','current_user_group':'staff','homedir':'/Users/tfisher','os':'Darwin','platform':'Darwin-14.4.0-x86_64-i386-64bit','python_installed_packages':['easyos==2.2','coverage==3.7.1','cython==0.22.1','nose==1.3.4','pip==7.1.0','setuptools==18.0.1','six==1.8.0','sqlalchemy==0.9.8','wheel==0.24.0',],'python_version':'3.4.3','python_version_feature_branch':'3.4','python_version_major':'3','release':'10.10.4','tmp_dir':'/var/folders/k6/dzxr5tss2kn_2tbbk_jfk4c40000gn/T','type':'Darwin'}>>>To useeasyosin a script, simply call the relevant key:ifeasyos['os']=='Darwin'andeasyos['python_version']=='3.4.2':print("Python3 on OS X.")Abstract away the tedious bits of cross-platform coding:withopen(easyos['tmp_dir']+'/script','w')aslog:message="wow that's easy"log.write(message)New features / Pull requests:Make a pull request with your change or addition and I’ll merge it if nudges the module in the right direction.As a non-Windows user, I’m unlikely to add more Windows attributes, but if you need something added, simply branch, make a pull request, and I’ll likely merge.