Saravanan666/pypi-org huggingface dataset:
Package: easygeo
easygeoGeocoding library that makes geocodification easier (and possibly cheaper).
It's a wrapper for geopy geocoding tools. And at the moment it allows to use Google's V3 or Nominatim API.Instalation:You can install this package using pip.pipinstalleasygeoUsage:fromeasygeoimportGeoCodeg=GeoCode(method="Nominatim",domain="nominatim.openstreetmap.org")g.geocode("Beauchef 850, Santiago, RM, Chile")# You can also bulk use this librarydf["Address"].apply(g.geocode)# This function allows to save the cached addresses into a file.g.save_cache()Development:In case you want to install easygeo along with the tools you need to develop and run the tests, run the following in your virtualenv.$pipinstall-e.[dev]
Package: easy-geoparsing
easy-geoparsingEasy-to-use module for streamlined parsing of countries from plaintext locations and top-level domains, plus manipulation of country names and ISO 2 & 3 character codes.Implementation relies on:theRESTcountriesAPIthegeotextmoduleinstallationTo install from the command line viapip, do:pip install easy-geoparsingTo upgrade to the latest version viapipdo:pip install easy-geoparsing --upgradeTo use viapipenvput the following in your Pipfile:[packages]
easy-geoparsing = ">=1.0.0"developmentIf you've cloned the repository, the best way to make it work is usingpipenvIf you don't yet havepipenv, you can usepipto install it from the command line:pip install pipenv --upgradeThen, in the top level directory of this repository,easy-geoparsing, do:pipenv install --devThis will create the virtual environment and install the requirements (viewable in the Pipfile). The--devflag will install packages needed for testing etc.usageGETTING STARTEDDo the following to get the parser utilities, noting that creating an instance ofEasyCountryParserwill automatically download the country data payload from RESTcountries and set up all the resources. Speed will therefore depend on your internet connection, but the payload is not large.from easy_geoparsing import EasyCountryParser

ez_parser = EasyCountryParser()or, if you don't want to use our alternative names for some of the countries (i.e. you want to exactly follow the RESTcountries standard)ez_parser = EasyCountryParser(altnames=False)TheEasyCountryParserclass provides utilities, based on the data from the RESTcountries API and the GeoText natural-language parser library, for easily extracting and handling country names and codes.PARSER RESOURCESThe parser is initialised with the following resources:.data- pandas DataFrame containing RESTcountries data.tld_to_a2c- python dict, maps TLDs to 2-character ISO codes.tld_to_a3c- python dict, maps TLDs to 3-character ISO codes.iso2to3- python dict, maps 2-character ISO codes to 3.iso3to2- python dict, maps 3-character ISO codes to 2.a2c_map- python dict, maps 2-char ISO codes to full names.a3c_map- python dict, maps 3-char ISO codes to full namesPARSER METHODSThe parser has the following methods for handling locations data:.retrieve_country- parses plaintext for extractable 2-character ISO codes for countries (which can then be manipulated using the mappers above)
Package: easy-geppy
EasyGeppyEasyGeppy is an easy to use programming interface forGeppyfrom Shuhua Gao [1], and proposed by C. Ferreira  in 2001 [2] forGene Expression Programming(GEP).EasyGeppy provides a minimized and pre-defined pipeline setup for solving simple and multiple regression problems using Geppy along with Pandas [3] and Numpy [4].The pipeline is based on the following Shuhua Gao's notebook:Simple mathematical expression inference.Nonetheless, EasyGeppy allows you to set your custom configuration to its setup by accessing the class EasyGeppy attributes.Feel free to contribute.How to installpip install easy_geppyHow to use#import
from easy_geppy import EasyGeppy

# Initialize
egp = EasyGeppy(df, #Pandas DataFrame
                 x_columns=['column1','column2','column3'],
                 y_column='column_y')

egp.default_initialization()

# Train
egp.launch_evolution(n_pop=300, n_gen=100)

# Get resulting function for making predictions
best_func = egp.get_best_solution_as_function()

# Make predictions
df['y_predicted'] = best_func(df)

# Get symbolic representation of the resulting function
egp.get_best_solution_simplified()ExampleEasyGeppy-ExampleReference[1] Shuhua Gao (2020) Geppy [Source code].https://github.com/ShuhuaGao/geppy.
[2] Ferreira, C. (2001). Gene Expression Programming: a New Adaptive Algorithm for Solving Problems. Complex Systems, 13.
[3] McKinney, W. & others, 2010. Data structures for statistical computing in python. In Proceedings of the 9th Python in Science Conference. pp. 51–56.
[4] Harris, C.R., Millman, K.J., van der Walt, S.J. et al. Array programming with NumPy. Nature 585, 357–362 (2020). DOI: 10.1038/s41586-020-2649-2. (Publisher link).
Package: easygh
Web-Statsgenerate website reportsWeb-stats is a simple library that allows you to generate website reports in less than 60 seconds , by scraping data frominsites.comonly10requests/ip are allowedyou will have to use proxiesonly60 secondsto generate a reportInstallationpipinstallweb-statsUsageimportgenerate_reportfromweb-statsgenerate_report('https://www.dafk.net/what/')Output example[{'name':'Overall','rating':'good','value':'6.7'},{'name':'Accessibility','rating':'better','value':'8.3'},{'name':'Experience','rating':'good','value':'5.2'},{'name':'Marketing','rating':'good','value':'5.1'},{'name':'Technology','rating':'better','value':'8.1'},{'name':'Twitter','value':'0.0'},{'name':'Analytics','value':'0.0'},{'name':'Printability','value':'0.0'},{'name':'Freshness','value':'0.0'},{'name':'Meta tags','value':'1.0'},{'name':'Mobile','value':'3.0'},{'name':'Popularity','value':'5.6'},{'name':'Amount of content','value':'7.8'},{'name':'Server behavior','value':'10.0'},{'name':'Page titles','value':'10.0'},{'name':'Headings','value':'10.0'},{'name':'Incoming links','value':'10.0'},{'name':'Images','value':'10.0'},{'name':'Internal links','value':'10.0'},{'name':'URL format','value':'10.0'},{'name':'Domain age','value':'i'}]LicenseMITfree stuff , hell yeah !
Package: easygis
USAGE## import library
from easygis import egis
## Contries support: 'vietnamese' only now.
vi_gis = egis(country='vie')
## Load data
dataLoader = vi_gis.loadDatabase()
## Give an example location
pts = [21.038575823260388, 105.77209179475015]
result = vi_gis.findout(pts,dataLoader)
## Result
print(result)
-> {'ward': 'Mai Dịch', 'district': 'Cầu Giấy', 'province': 'Hà Nội'}
Package: easygit
easygitGenerate git syntax, commands by interacting with the terminal in English.Documentation|Contribution Guidelines|Releases|WikiThis repo is also meant to be a reference for learning how to create libraries in Python and use various features that Github provides like Github Actions, Projects and Releases. Well detailed notes on the same can be foundhere.Installationpip install easygitHow to use:fromeasygitimportEasygitgit=Easygit()git.interactive()Upgrade Package to latest versionpip install --upgrade easygitCloning repoNote: Will likely contain changes not yet released in PyPI library.pip install colorama wit
git clone https://github.com/Sharan-Babu/easygit.gitVersioningYou can download specific versions of the libraryhere.Overvieweasygitlibrary comes with the Easygit class which has the following methods:1)query()Used to retrieve explanation/gitsyntax for given sentence.Example Usage:git=Easygit()git.query("How to clone a repository using git?")Output:git clone <repository_web_url>2)interactive()Used to start interactive mode in terminal.git=Easygit()git.interactive()Output:Interactive mode:

Enter your query:LicenseMIT LicenseAwesome ContributorsSharan Babu:Rajesh Silvoj:
Package: easyglue
EasyGlueThis project aims to make the usage of AWS Glue's DynamicFrame more similar to that of Apache Spark's DataFrame, so that it's easier to remember and read. Let's take a simple S3 read of a JSON dataset for instance:In Spark, this would be a DataFrame S3 read:spark.read().json('s3://test_path/')In Glue, this would be a DynamicFrame S3 read:glue.create_dynamic_frame.from_options(connection_type='s3', connection_options={'paths': ['s3://test_path/']}, format='json', transformation_ctx='datasource0')As you can see, the syntax here is quite different - and in the case of Glue, way more verbose. With EasyGlue, you can turn the DynamicFrame read operation into something way more similar:glue.read().json('s3://test_path/')Currently-supported optionsThe project currently supports:Reading/writing from/to:S3, in any of the file formats supported by GlueJDBCRDDsDynamoDBDocumentDB and MongoDBSecrets Manager integration for JDBC read/writesUsageYou can either use the pre-built PyPi package, or build it yourself to a wheel file:Using from PyPiTo use EasyGlue in your projects, simply add the following properties to your job:key: --additional-python-modules
value: easyglueThen add animport easygluestatement at the beginning of your job's code. That's it.Building to a wheel fileIf you prefer to build from source and pass the module as a wheel file, do the following:Download the source code:git clone https://github.com/albertquiroga/EasyGlue.gitGo into the project's directory, and build it into a wheel file:python setup.py build bdist_wheelA newdistdirectory will have been created, inside you'll find the built wheel file. Upload this to S3 and add it as a library to your Glue ETL JobIn your ETL Job code, simply add aimport easyglueline at the topHow does this work?This project usesclass extension methodsto simply add methods to the GlueContext class:In Python this is not supported as neatly as inother programming languages, but it's doable throughsetattr.In Scala, this isdirectly supported.RoadmapCheck the roadmap in GitHubhere
Package: easygooglesearch
easygooglesearch.pyThis tiny module allows access to some Google Search features which may not be easily accessible using the official Google APIs. Only the beautifulsoup4 and requests modules are required.
Please note that Google may change how the Google Search websites work at any moment, or even ban those who are overusing/abusing their features, which this module will happily allow one to do. Use this module carefully at your own risk.DocumentationGoogle Searcheasygooglesearch.get_autocomplete_entry(query : str)returns a list of strings, or NoneTakes a query and returns Google's autocompletes.Google Imageseasygooglesearch.reverse_gimage(imagelink : str)returns stringTakes the link to an image and returns what Google thinks the image is.easygooglesearch.reverse_gimage_link(imagelink : str)returns stringTakes the link to an image and returns a link to a Google Search of that image.Exceptionseasygooglesearch.Error(Exception)This is the base class for exceptions in the easygooglesearch module.easygooglesearch.NetworkError(Error)This exception is raised when the data easygooglesearch is trying to access on the Internet can't be reached.easygooglesearch.DecodeError(Error)This exception is raised when easygooglesearch doesn't understand the data it got from the Internet. This may indicate that Google has blocked or ratelimited due to overuse/abuse. This can sometimes be fixed by accessing a Google webpage, upon which Google will try to see if you're a robot, and you can lie through your teeth. This error could also indicate that the webpage structure has changed and the module doesn't know what to do. If updating easygooglesearch doesn't fix this problem, see if there is an issue is open, and if not, submit your own.
Package: easy-googlesheets
DescriptionGoogle sheets API, easy to useExample of usagefromeasy_googlesheetsimportGSheetsmyGSheets=GSheets(secret_filename='credentials.json',spreadsheet_id='',data_tab_name='Page 1',control_id='user1')# Example of filter outputfilter_list=["lat>0","lng<0"]print(myGSheets.filter_by(filter_list))# Example of insert rowmyGSheets.insert({'name':'100 Montaditos ','lat':float(37.3812499),'lng':float(-6.0085387),'url':'https://spain.100montaditos.com/es/la-carta/','vicinity':'Calle San Jacinto, 89, 41010 Sevilla','ref':2999389465,'uploader':'user1'})#print(myGSheets.remove("ROWS",6,9))# Always close at the endmyGSheets.close()
Package: easygoogletranslate
easygoogletranslateUnofficial Google Translate API.This library does not need an api key or something else to use, it's free and simple.
You can either use a string or a file to translate but the text must be equal to or less than 5000 character.
You can split your text into 5000 characters to translate more.Google Translate supports 108 different languages. You can use any of them as source and target language in this application.
If source language is not specified, it will detect source language automatically.
This application supports multi thread translation, you can use it to translate multiple languages at once.
Detailed language list can be found here:https://cloud.google.com/translate/docs/languagesInstallation:The easiest way to install easygoogletranslateis to download it from PyPI. Then you will be able to use the library.pip install easygoogletranslateExamples:Specify default source and target language at beginning and use it any time.from easygoogletranslate import EasyGoogleTranslate

translator = EasyGoogleTranslate(
    source_language='en',
    target_language='de',
    timeout=10
)
result = translator.translate('This is an example.')

print(result) 
# Output: Dies ist ein Beispiel.Don't specify default parameters.from easygoogletranslate import EasyGoogleTranslate

translator = EasyGoogleTranslate()
result = translator.translate('This is an example.', target_language='tr')

print(result)
# Output: Bu bir örnektir.Override default parameters.from easygoogletranslate import EasyGoogleTranslate

translator = EasyGoogleTranslate(target_language='tr')
result = translator.translate('This is an example.', target_language='fr')

print(result)
# Output: Ceci est un exemple.Translate a text in multiple languages at once via multi-threading.from easygoogletranslate import EasyGoogleTranslate

translator = EasyGoogleTranslate()
result = translator.translate(text='This is an example.', target_language=['tr', 'fr', 'de'])

print(result)
# Output: ['Bu bir örnektir.', 'Ceci est un exemple.', 'Dies ist ein Beispiel.']Translate a file in multiple languages at once via multi-threading.from easygoogletranslate import EasyGoogleTranslate

translator = EasyGoogleTranslate()
result = translator.translate_file(file_path='text.txt', target_language=['tr', 'fr', 'de'])

print(result)
# Output: ['Nasılsın?', 'Comment ca va?', 'Wie geht es Ihnen?']
# Text inside file: How are you?
Package: easyGPGTool
# 🔒 easyGPG 🔒
## Table of Contents[Introduction](#introduction)[Features](#features)[Recently changes](#recently-changes)[Requirements](#requirements)[How to use](#how-to-use)[Installation](#installation%EF%B8%8F)[Acknowledgements](#acknowledgements)## Introduction👋what is GPG?GPG (GNU Privacy Guard) is a free and open-source tool for encrypting and signing data and communications. It uses public-key cryptography to ensure the security and privacy of your data. With GPG, you can encrypt your files and messages so that only the intended recipient can read them, and you can also digitally sign your messages to prove their authenticity.what is easyGPGeasyGPG is a tool that allows you to work with GPG easily instead of using the original library. With two different versions available, you can choose the one that best fits your needs.
This GUI version helps you to get rid of typing codes and other stuff. So you can easily do whatever just with forms. 🎉## Features💡
Why use easyGPG? 💻easyGPG makes it easy for anyone to use GPG for encryption and decryption without having to learn complex command-line codes. With its user-friendly interface, you can quickly and easily manage your keys and perform common tasks such as:🔒 Encrypting your data to keep it safe from prying eyes🔓 Decrypting your data quickly and easily whenever you need to access it📤 Exporting your keys to a file for easy transfer between devices📥 Importing keys from a file to quickly add them to your keychain🔑 Generating a new key with just a few clicks or deleting an existing one if you no longer need it📝 Keeping track of changes and updates with our detailed patch notes🔍 Easily viewing all your keys in one place with our show keys feature## Recently changes🆕some bugs were fixed## Requirements📦
Before running the application, make sure to install all required libraries by following the instructions in the Requirements.txt file included in the project.## How to use📖
After installing the required packages, make sure to compile the project in order to start using GPG-GUI.## Installation🛠️
### For Debian` sudo apt update && sudo apt upgrade sudo apt install python3 && sudo apt installpython3-pippip3 install easyGPG `### For Fedora` sudo dnf update && sudo dnf upgrade sudo dnf install python3 && sudo dnf installpython3-pippip3 install easyGPG `### For Arch` sudo pacman-Syusudo pacman-Spythonpython-pippip3 install easyGPG `### For MacOS`xcode-select--installruby-e"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"brew install python3 pip3 install easyGPG `### CentOS/RHEL` sudo yum update sudo yum install python3python3-pippip3 install easyGPG `### Gentoo` sudo emerge--sync&& sudo emerge--updateworld sudo emerge--askdev-lang/pythondev-python/pippip3 install easyGPG `### Slackware` slackpkg update && slackpkgupgrade-allslackpkg install python python-mensurepip pip install--upgradepip setuptools wheel pip install easyGPG `## Acknowledgements🙏
This README.md file was improved with the assistance of Bing. 😊
Package: easy-gpt-utils
easy_gpt_utilsEasy GPT Utils include 1. chat completion 2. embedding and 3. vector database and others to help create app based on GPT and vector search
(vector database is not implemented yet)gptgpt is a simple util to use OpenAI's chat modles such as gpt-3.5-terbo gpt-4 etc. It has functions:calculate token of a stringsplit string by paragraph and sentences within maximum token limitset model, tempratureset system prompt and post promptadd context infomation to queryremember talking history(buggy, will exceed token limit)embeddingembedding is a simple util to create embedding (1536 dimension victor) for strings and paragraphs, It has functions:create embedding from string ,paragrahp and filesave embeddings to filevector_basenot implemented yetIn summary, easy_gpt_utils is now on early stage and hope it could help to create more powerful AI Apps in the future
Package: easyGrad
[![Build Status](https://travis-ci.org/amartya18x/easyGrad.svg?branch=master)](https://travis-ci.org/amartya18x/easyGrad)# Easy GradThis library aims to provide an easy implementation of doing symbolic operations in python## Operators allowed- *exp(x)* and *log(x)*```Pythondef testOps():x = Integer('x')y = ops.log(x)z = ops.exp(y)graph = GradGraph(z)graph.getOutput({x: 1})graph.getGradients(wrt=x)print x.gradient```- *Sigmoid(x)*```Pythondef activ_fns():x = Double('x')z = ops.sigmoid(x)graph = GradGraph(z)graph.getOutput({x: 110.5})graph.getGradients(wrt=x)print x.gradient```- *Tanh(x)*```Pythondef activ_fns():x = Double('x')z = ops.tanh(x)graph = GradGraph(z)graph.getOutput({x: 110.5})graph.getGradients(wrt=x)print x.gradient```## Testing```Pythondef gradTestSimple():a = Integer("a")b = Integer("b")c = a + bd = b + 6e = c * dgraph = GradGraph(e)graph.getOutput({a: 32,b: 11})graph.getGradients(wrt=b)print a.gradient, b.gradient```### Here is a more complex example.```Pythondef gradTest():x = Integer("Int1x")y = Integer("Int2y")z = Integer("Int3z")p = Integer("Int4p")k = p * zt = y * km = k + tn = m * zgraph = GradGraph(n)graph.getOutput({x: 9,y: 9,z: 9,p: 2})graph.getGradients(wrt=z)print x.gradient, y.gradient, z.gradient, p.gradient```### This is the same examples as above but the commands are not three op commands.```Pythondef gradTestLong():x = Integer("Int1x")y = Integer("Int2y")z = Integer("Int3z")p = Integer("Int4p")k = p * zn = (k + (y * p * z)) * zgraph = GradGraph(n)graph.getOutput({x: 9,y: 9,z: 9,p: 2})graph.getGradients(wrt=z)print x.gradient, y.gradient, z.gradient, p.gradient```Tensor Operations```Pythondef dotProduct():x = DoubleTensor("Tensor1")y = x.dot([3, 4])z = y.dot([4, 5])graph = GradGraph(z)output = graph.getOutput({x: [3, 4]})graph.getGradients(wrt=x)assert(np.all(output == [100, 125]))assert(np.all(x.gradient == [[ 12., 16.], [ 15., 20.]]))def TensorOp():x = DoubleTensor("Tensor1")y = x - [3, 4]z = ops.log(y * x)graph = GradGraph(z)output = graph.getOutput({x: [10]})assert(np.all(np.isclose(output, np.log(10 * (10 - np.asarray([3, 4]))))))graph.getGradients(wrt=x)a = 2 * 10 - np.asarray([3, 4])b = 1.0/np.exp(np.asarray(output))assert(np.all(np.isclose(x.gradient, a * b)))```
Package: easy-grid-wdroz
GridSearch-like on the gridSearching good combinaisons of parameters happen quite ofter in ML-related task. I wrote a tool that help to achieve that. If you worked with the unix system callfork, you will see a similar approach with the API.The only requirement is jinja2Hello World exampleIn this example we wrote all combinaisons of hello/hi world/Idiap.fromeasy_grid.experiences_managerimportExperienceBaseif__name__=='__main__':ifExperienceBase.is_in_SGE():# Write your taskparameters=ExperienceBase.load_only_current()first=parameters['first']second=parameters['second']print('{}{}'.format(first,second))else:# Configure your taskmy_experience=ExperienceBase(python_executable='python3')my_experience.add_experience_key_values('first',['hello','hi'])my_experience.add_experience_key_values('second',['world','idiap'])my_experience.add_grid_parameter('-P','rise')my_experience.add_grid_parameter('-cwd','')my_experience.add_grid_parameter('-N','hello_world')my_experience.add_export_parameter('PYTHONPATH','.:$PYTHONPATH')my_experience.run(sync=True)Run the examplepython3 -m examples.hello_worldthen check the results after running the script (and waiting a little bit)ls -1 output/hello_world.o*output/hello_world.o5439319.1
output/hello_world.o5439319.2
output/hello_world.o5439319.3
output/hello_world.o5439319.4Each file contains the result of a combinaison. Let's check the content of the first onecat output/hello_world.o5439319.1hello worldGet all results at oncecat output/hello_world.o*hello world
hi world
hello idiap
hi idiapFizzBuzz exampleWe can also use task over a single parameter, like in fizzbuzz, which depend ofn. Here an example with fizzbuzz from [1, 100]fromeasy_grid.experiences_managerimportExperienceBaseif__name__=='__main__':ifExperienceBase.is_in_SGE():# Write your taskparameters=ExperienceBase.load_only_current()n=parameters['n']my_str=''ifn%3==0:my_str+='Fizz'ifn%5==0:my_str+='Buzz'ifmy_str=='':my_str=str(n)print('(n={:04d}) ->{}'.format(n,my_str))else:# Configure your taskmy_experience=ExperienceBase()my_experience.add_experience_key_values('n',list(range(1,101)))my_experience.add_grid_parameter('-P','rise')my_experience.add_grid_parameter('-cwd','')my_experience.add_grid_parameter('-N','fizzbuzz')my_experience.add_export_parameter('PYTHONPATH','.:$PYTHONPATH')my_experience.run(sync=True)Run the examplepython3 -m examples.fizzbuzzGet all results at once and sort by ncat output/fizzbuzz.o* | sort(n=0001) -> 1
(n=0002) -> 2
(n=0003) -> Fizz
(n=0004) -> 4
(n=0005) -> Buzz
(n=0006) -> Fizz
(n=0007) -> 7
(n=0008) -> 8
(n=0009) -> Fizz
(n=0010) -> Buzz
(n=0011) -> 11
...
(n=0090) -> FizzBuzz
(n=0091) -> 91
(n=0092) -> 92
(n=0093) -> Fizz
(n=0094) -> 94
(n=0095) -> Buzz
(n=0096) -> Fizz
(n=0097) -> 97
(n=0098) -> 98
(n=0099) -> Fizz
(n=0100) -> BuzzUsing with conda environmentYou can use conda run with the python_executable parametermy_experience=ExperienceBase(python_executable="/idiap/user/wdroz/conda_stuff/miniconda3/condabin/conda run -n rise-baseline python3")you need to specify the full path of conda