Saravanan666/pypi-org huggingface dataset:
Package: elysium
#+title:🏰 Elysium#+author: Ian Kollipara#+date: <2022-05-15 Sun>Elysium is a Python ODM built for [[https:deta.sh][Deta]]. The name comes from one of the mountains of Mars. The main perks being:- Tight integration with Deta Base- Lambda queries to search with- Your choice off dataclasses or Pydantic for data modelingTo install simply type:#+begin_src shellpip install elysium#+end_srcElysium is in development software, but the API is stable.** Roadmap- [X] Use Lambdas to query the database- [X] Allow use of Pydantic or dataclasses- [ ] Create Testing Suite- [ ] Implement Deta's updates on the backend- [ ] Implement some sort of way to handle related data (maybe ad-hoc joins?)** Usage#+begin_src pythonfrom elysium import Elysiumfrom dataclasses import dataclasselysium = Elysium()@dataclassclass Article(Elysium.Model):title: strauthor: strbody: strelysium.generate_mappings()a = Article("test", "ikollipara", "lorem ipsum")elysium.insert(a)Article.fetch(lambda a: a.title == "test") # Article("test", "ikollipara", "lorem ipsum")#+end_src
Package: ely.tinymce_kupu_useragent_patch
IntroductionBoth kupu and tinymce check the user-agent header in requests as part
of isKupuEnabled and isTinyMCEEnabled. If user-agent is empty then it
will return false. This is not so useful in those situations where it
is nice to clear out user agent, e.g. with nginx in front of squid.This patch removes that check. So far it seems pretty stable to
inflict kupu and tinymce on people without the user-agent data.Changelog1.0 - UnreleasedInitial release
Package: elytra-ms
elytra-msA Python Library for various Microsoft APIs, including the Xbox and Bedrock Realms APIs.Note: this library is a work in progress!This currently only supports the workflowthe Realms Playerlist Botdoes, but it is planned to be expanded in the future.Usageimportanyio# or asyncio, or trioimportelytraasyncdefmain():xbox_api=awaitelytra.XboxAPI.from_file("CLIENT_ID","CLIENT_SECRET",oauth_path="oauth.json")print(awaitxbox_api.fetch_profile_by_gamertag("SomeGamertag"))awaitxbox_api.close()anyio.run(main)SetupTODO: actually do this section.Install PackageRequires Python 3.10+.pipinstall-Uelytra-msMake An ApplicationTaken fromxbox-webapi-pythonfor now, copyright 2020 OpenXbox under MIT.Authentication is supported via OAuth2.Register a new application inAzure AD.Name your app.Select "Personal Microsoft accounts only" under supported account types.Addhttp://localhost/auth/callbackas a Redirect URI of type "Web."Copy your Application (client) ID for later use.On the App Page, navigate to "Certificates & secrets."Generate a new client secret and save for later use.Get OAuth/Token DataIn your terminal, run:elytra-authenticate--client-idCLIENT_ID_FROM_ABOVE--client-secretCLIENT_SECRET_FROM_ABOVEThis will create a file calledoauth.jsonin the directory this is run in. This file alone works with all APIs currently supported.
Package: elyzer
# ElyzerSee step-by-step how Elasticsearch custom analyzers decompose your text into tokens.My therapist said this would be a good idea…<pre>
Doug:  hi
Eliza: How are you today.. What would you like to discuss?
Doug:  well I can’t really see how my Elasticsearch analyzers work, on the inside
Eliza: How do you know you can’t really see how your Elasticsearch analyzers work, on the inside?
Doug:  cause I call _analyze, and it does the whole analyzer or just one step
Eliza  What other reasons might there be?
Doug:  I guess nobody’s gotten around to making a good debugger
Eliza  I’m not sure I understand you fully.
Doug   well just keep reading this README then…
Eliza  Come, come, elucidate your thoughts.
</pre># InstallationInstall through pip3(ES 2.x & 5.x)pip3 install elyzer# UsageGive Elyzer some text and have its analyzed. See the process broken down step-by-step on the command line.Assuming I’d created anenglish_bigramscustom analyzer for the index tmdb, I would run the analyzer like so` $ elyzer--es"http://localhost:9200"--indextmdb--analyzerenglish_bigrams "Mary had a little lamb" TOKENIZER: standard {1:Mary}    {2:had} {3:a}   {4:little}  {5:lamb} TOKEN_FILTER: standard {1:Mary}    {2:had} {3:a}   {4:little}  {5:lamb} TOKEN_FILTER: lowercase {1:mary}    {2:had} {3:a}   {4:little}  {5:lamb} TOKEN_FILTER: porter_stem {1:mari}    {2:had} {3:a}   {4:littl}   {5:lamb} TOKEN_FILTER: bigram_filter {1:mari had}    {2:had a}   {3:a littl} {4:littl lamb} `Output is each token, prefixed by the numerical position attribute in the token stream at each step.## ArgsThere are four required command line args:es: the elasticsearch host (iehttp://localhost:9200)index: name of the index where your custom analyzer can be foundanalyzer: name of your custom analyzertext: the text to analyze# Shortcomingsaka “Areas for Improvement”
- Only works for custom analyzers right now (as it accesses the settings for your index)
- Attributes besides the token text and position would be handy## Who?Created by [OpenSource Connections](http://opensourceconnections.com)## LicenseReleased under [Apache 2](LICENSE.txt)
Package: elz-py-tools
Python toolsRequires Python 3.8+PyPI :https://pypi.org/project/elz-py-tools/Usage example :https://gitlab.com/elzeard/elz-py-tools-exampleThis repository contains some Python components used in Elzeard project.
These components contain AMQP client and drivers for connecting databases. They are made to be working along with synaptix framework created by Mnemotix (https://gitlab.com/mnemotix).This repository uses Poetry for package dependencies (https://python-poetry.org/).For working on these components or new ones, install poetry and install package dependencies by running :poetry installFor using it locally from another repository :poetry buildpip install <local_path_to_this_repo>Datastore and driversTODO: to complete...Model generatorModel files can be generated for facilitating use of this framework and querying of graph and index
TODO: complete doc...Here is the format of the schema json file, which is used by datastore :[{
    schema1: {
        name: <string>,
        instantiable: <boolean>,
        graphType: <string>,
        indexType: <string>,
        mongoType: <string>,
        props: {
            <prop1>: { name: <string>, dataType: <string>, plural: <boolean> }
        },
        links: {
            <link1>: {
                name: <string>,
                relatedType: <string>,
                nested: <boolean>,
                plural: <boolean>,
                reversedLink: <string>
            }
        }
    },
    ...
}]TODO:Implements GraphDriver.get_nodes methodAdd possibility to query a label property in a specific languageOption for passing custom datatype mapping in datastore
Package: em4-datastore-py3
Installingpip install em4-datastore-py3Usagefrom src.methods import Em4DataStore
db = Em4DataStore()
message, client_id = ds.upsertClient(name=client_name,
lastname=lastname,
phone=phone,
email=email,
address1=address1,
address2=address2,
city=city,
state=state,
zipcode=zipcode)
Package: em73xx
Python utility to interact with the telephone functionality of the
Sierra Wireless EM73xx modems, present in Lenovo Thinkpads (tested on a
Thinkpad X250) and possibly others.InstallEither retrieve from pypi using pip:$ pip install em73xxor clone this repo, and install usingsetup.py:$ git clone https://github.com/smcl/py-em73xx
$ cd py-em73xx
$ python setup.py installDocumentation(TODO, haha!)ExamplesFind which device the modem using thefind_device.sh script- here
it’s/dev/ttyACM0:$ ./find_device.sh
/dev/ttyACM0 - Sierra_Wireless_Inc._Sierra_Wireless_EM7345_4G_LTE_013937006578445
/dev/input/event14 - SunplusIT_Inc_Integrated_Camera
/dev/video0 - SunplusIT_Inc_Integrated_CameraInitialising the modem:from em73xx import Modem

em7345 = Modem("/dev/ttyACM0", pin="1234", debug=True)receiving/reading SMS messages:messages = em7345.getSMS()sending an SMS message:em7345.sendSMS("775123456", "test message from em73xx!")getting a GPS fix (Nonereturned if failed):gps = em7345.getGPS()
if gps:
    print(gps.latitude)
    print(gps.longitude)TODOwrite documentation - methods, types, etcadd more functionality, sms and gps alone won’t cut it. poking around
with the at commands text file in /docs should helpthere’sheapsof info returned by theXLCSLSRcommand,
investigate if there’s anything useful we can provide
Package: emac
emacAn implementation of Emacs in PythonWARNING: This repo is in development. It was automatically generated withmkpylib. If you're reading this message, it means that I use this repo for my own purposes right now. It might not do anything at all; the default functionality isprint('TODO').If you really want to try it out, feel free. I recommend reading through the code and commit history to see if it does what you need, orask mefor status updates.Stay tuned!Installpython3 -m pip install -U emacUsageimportemacprint('TODO')LicenseMITContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: emacnn
EmacNNEmacNN is a CLI for training a neural network to generate YouTube video scripts using YouTube's automated closed captions for a specific channel's videos.The name, Emac, refers ostensibly to one ofEric McHenry'spreferred nicknames. His long, rambling, often circuitous, and long"vlogs"inspired this project.InstallationThe best way to install EmacNN is to use Pip.pipinstallemacnnUsage# Display help textemacnn--helpContributingMerge requests are welcome after opening an issue first. Please make sure to update tests as appropriate.DevelopmentInstall in a virtual environment with:python-mvenvenv
pipinstall-e.To improve model training time, it is reocmmended to use CUDA if your GPU is supported.Refer to theKeras requirements.Install CUDA Toolkitmatching Keras requirementInstall cuDNNmatching Keras requirement
Package: emacs-keys-everywhere
emacs-keys-everywhereEnable GNU Emacs style key bindings for GTK+ desktop programs.Usageemacs-keys-everywhereInstallsudopip3installemacs-keys-everywhere(Followthis
guideif you want to install withoutsudo.)Referenceshttps://wiki.archlinux.org/index.php/GTK+#Emacs_keybindingshttps://askubuntu.com/questions/124815/how-do-i-enable-emacs-keybindings-in-apps-such-as-google-chromehttps://askubuntu.com/questions/172260/how-to-get-emacs-keybindings-in-firefox-using-mate
Package: em-add-scalebar
Add Scalebar Python PackageDescription: Python GUI to add scale bar (and other processing features) to images within a selected folderInstallation1. Download through PyPi$ python -m pip install em-add-scalebar2. Download through Git$git clone https://git.mpi-cbg.de/scicomp/bioimage_team/tobias_em_app_scalebar.gitQuickstart1.After downloading the package, the user interface can be accessed by runningpython -m add_scalebarThe following window should appear2.In the window, you can change the following parameters1. Input Location - Folder containing images to be processed

2. Input File extension - Type of images to be processed. All other image types are ignored

3. Output method - Where to save the images

    - Default Save in Subfolder in parent folder: All new files are saved in a folder at the top level named ImageWithScaleBar
    - Save in Subfolder: A subfolder named ImagesWithScaleBar is created for each folder containing images
    - Save in Same Folder: New images are saved in the same folder as original images 

4. Output file extension - New file extension for saved images

5. Convert images to 8 Bit

6. Automatically adjust the contrast of each image

7. Add Scale Bar to images

8. The font color of the scale bar to be added3.Press start to begin the processExample resulting image
Package: emagpy
EMagPyPython API for inversion/modelling of frequency domain electromagnetic data (FDEM).EMagPy is divided into a python API and a standalone graphical user interface (GUI).
It aims to be a powerfull but simple tool for inverting EMI data obtain from conductimeter.Getting startedClone the repository:gitclonehttps://gitlab.com/hkex/emagpyChange to thesrcdirectory and runui.pyto start the GUI.cdemgapy/src
pythonui.py# this will start the GUIThe python API is available by simply importing theemagpymodule from the python shell:importemagpyk=Problem()k.createSurvey('./test/coverCrop.csv')k.invert(forwardModel='CS')# specify the forward model (here the Cumulative Sensitivty of McNeil1980)k.showResults()# display the sectionk.showMisfit()# display predicted and observed apparent ECk.showOne2one()# 1:1 line of misfit of apparent ECCheck out the jupyter notebook examples inemagpy/examples/.
Package: email2country
email2country (Python Package)This is an easy-to-use Python package to look up the country given an email address. The GitHub project is atemail2country.InstallationRequirement: Python 3pipinstall--upgradegit+git://github.com/zhijing-jin/email2country.gitHow to Run(All country names are conssitent with ISO 3166-1)Function 1: Find the country where the email server is located>>>fromemail2countryimportemail2country>>>email2country('zhijing@mit.edu')'United States'Or you can just use the domain>>>email2country('connect.hku.hk')'Hong Kong'Function 2: Find the country where the institution of this email address is located>>>fromemail2countryimportEmail,email2institution_country>>>email2institution_country('zhijing@mit.edu')'United States'>>>email2institution_country('zhijing@gmail.com')[Info]Emaildomain"gmail.com"isgeneric.Thereisnospecificcountry.>>>email2institution_country('zhijing@gmail.com111')[Info]Countrynotfoundfor"gmail.com111"Function 3: Look up in batches>>>fromemail2countryimportbatch_email2institution_country>>>batch_email2institution_country(['nyu.edu','gmail.com','hku.hk'])['United States',None,'Hong Kong']# or you can enable the "enable warning" option:>>>batch_email2institution_country(['nyu.edu','gmail.com','hku.hk'],enable_warning=True)[Info]Emaildomain"gmail.com"isgeneric.Thereisnospecificcountry.['United States',None,'Hong Kong']# Similarly, you can try email2country lookup>>>fromemail2countryimportbatch_email2country>>>batch_email2country(['nyu.edu','gmail.com','hku.hk'])Function 4: Customize your own functionYou can use theEmailCountryCheckerobject directly:>>>fromemail2countryimportEmailCountryChecker>>>checker=EmailCountryChecker()>>>checker.get_institution_country('hku.hk',enable_warning=True)'Hong Kong'>>># ... Perform your own actionsOr you can use theEmailobject>>>fromemail2countryimportEmail>>>addr='zhijing@mit.edu'>>>email=Email(addr)>>>email.country'United States'>>>email.institution_country'United States'ContactIf you have more questions, feel free to contact the authorZhijing Jin (Miss).
Package: email2slack
PyPI versionBuild
StatusCoverage
StatusMIME E-mail forwarding script for Slack(webhook) written in Python.DemoFail2Ban (plain text)Slack Demo: Plain text Fail2Bannetdata (HTML)Slack Demo: HTML netdataRequirementsPythonPython 2 >= 2.7Python 3 >= 3.4Getting StartedPrerequisites(Optional) Use faster HTML parser than pure PythonInstallation of email2slack requiresgccand the development
packages of bothlibxml2andlibxslt. On RedHat based systems
you can install these usingsudo yum install gcclibxml2-devellibxslt-devel. On Ubuntu systems
you can install usingsudoapt-getinstallbuild-essentiallibxml2-devlibxslt-dev. If you
are using some other system there are probably similar packages
available.(Optional) Use nkf to convert character encoding for non Unicode messagenkf binding module (https://pypi.org/project/nkf/) also requiresgccandPython development headersto build C extension. On RedHat based
systems you can install these usingsudo yum install gccpython-devel. On Ubuntu systems you can install
usingsudoapt-getinstall pythonpython-pip.Install email2slackFrom PyPI# Install email2slackpipinstall-Uemail2slack# without any optional modulespipinstall-Uemail2slack[lxml]# use lxmlpipinstall-Uemail2slack[nkf]# use nkfpipinstall-Uemail2slack[lxml,nkf]# both# Fetch configuration file from GitHubcurlhttps://raw.githubusercontent.com/mikoim/email2slack/master/contrib/email2slack>/usr/local/etc/email2slack# Before using, You must edit config filevim/usr/local/etc/email2slackIn this case, setuptools create script to call email2slack and place it
inbindirectory automatically. So you should use the script in
Setup MTA section.From GitHub repositorygitclonehttps://github.com/mikoim/email2slack.gitcdemail2slack# Install email2slackpipinstall-U.# without any optional modulespipinstall-U.[lxml]# use lxmlpipinstall-U.[nkf]# use nkfpipinstall-U.[lxml,nkf]# bothcpcontrib/email2slack/usr/local/etc/# Before using, You must edit config filevim/usr/local/etc/email2slackSetup MTAPostfixvim/etc/postfix/aliases...# notify only, not forwarduser:|/usr/local/bin/email2slack# notify and forward e-mail to another useruser:anotheruser,|/usr/local/bin/email2slack# notify and leave e-mail on same useruser:\user,|/usr/local/bin/email2slack# you can override default slack url, team and channel with command line option,
# which replace as default=value in each section.
# -s url / --slack url
# -t team-name / --team team-name
# -c channel-name / --channel channel-name
# -f /path/to/email2slack.conf / --config /path/to/email2slack.confuser:"|/usr/local/bin/email2slack -c '@user'"another:"|/usr/local/bin/email2slack -c '#random'"...newaliasesContributorsThank you for your great work!@komeda-shinji@mmrwoods
Package: emailable
Emailable Python LibraryThis is the official python wrapper for the Emailable API.DocumentationSee thePython API docs.InstallationpipinstallemailableUsageThe library needs to be configured with your account's API key which is available in yourEmailable Dashboard.Setupimportemailableclient=emailable.Client('live_...')Verification# verify an email addressresponse=client.verify('evan@emailable.com')response.state=>'deliverable'# additional parameters are available. see API docs for additional info.client.verify('evan@emailable.com',smtp=False,accept_all=True,timeout=25)Slow Email Server HandlingSome email servers are slow to respond. As a result, the timeout may be reached
before we are able to complete the verification process. If this happens, the
verification will continue in the background on our servers. We recommend
sleeping for at least one second and trying your request again. Re-requesting
the same verification with the same options will not impact your credit
allocation within a 5 minute window.A slow response will return with a 249 status code.response=client.verify('slow@example.com')response.status_code=>249response.message=>'Your request is taking longer than normal. Please send your request again.'Batch VerificationStart a batchemails=['evan@emailable.com','support@emailable.com',...]response=client.batch(emails)response.id=>'5cff27400000000000000000'# you can optionally pass in a callback url that we'll POST to when the# batch is complete.response=client.batch(emails,{'url':'https://emailable.com/'})Get the status / results of a batchTo get the status of a batch callbatch_statuswith the batch's id. If your batch is still being processed, you will receive a message along with the current progress of the batch. When a batch is completed, you can access the results in theemailsattribute.response=client.batch_status('5cff27400000000000000000')# if your batch is still runningresponse.processed=>1response.total=>2response.message=>'Your batch is being processed.'# if your batch is completeresponse.emails=>[{'email':'evan@emailable.com','state':'deliverable'...},{'email':'support@emailable.com','state':'deliverable'...}...]# get the countsresponse.total_counts=>{'deliverable':2,'undeliverable':0...}response.reason_counts=>{'accepted_email':2,'rejected_email':0...}DevelopmentTests can be run with the following command:pythonsetup.pytestContributingBug reports and pull requests are welcome on GitHub athttps://github.com/emailable/emailable-python.
Package: emailable-backport
Emailable Python Library BackportThis is the backport to Python 2.7 of theEmailable'sofficialpython wrapperfor the Emailable API.DocumentationSee thePython API docs.Installationpipinstallemailable-backportUsageThe library needs to be configured with your account's API key which is available in yourEmailable Dashboard.Setupimportemailableclient=emailable.Client('live_...')Verification# verify an email addressresponse=client.verify('evan@emailable.com')response.state=>'deliverable'# additional parameters are available. see API docs for additional info.client.verify('evan@emailable.com',smtp=False,accept_all=True,timeout=25)Slow Email Server HandlingSome email servers are slow to respond. As a result, the timeout may be reached
before we are able to complete the verification process. If this happens, the
verification will continue in the background on our servers. We recommend
sleeping for at least one second and trying your request again. Re-requesting
the same verification with the same options will not impact your credit
allocation within a 5 minute window.A slow response will return with a 249 status code.response=client.verify('slow@example.com')response.status_code=>249response.message=>'Your request is taking longer than normal. Please send your request again.'Batch VerificationStart a batchemails=['evan@emailable.com','support@emailable.com',...]response=client.batch(emails)response.id=>'5cff27400000000000000000'# you can optionally pass in a callback url that we'll POST to when the# batch is complete.response=client.batch(emails,callback_url='https://emailable.com/')Get the status / results of a batchTo get the status of a batch callbatch_statuswith the batch's id. If your batch is still being processed, you will receive a message along with the current progress of the batch. When a batch is completed, you can access the results in theemailsattribute.response=client.batch_status('5cff27400000000000000000')# if your batch is still runningresponse.processed=>1response.total=>2response.message=>'Your batch is being processed.'# if your batch is completeresponse.emails=>[{'email':'evan@emailable.com','state':'deliverable'...},{'email':'support@emailable.com','state':'deliverable'...}...]# get the countsresponse.total_counts=>{'deliverable':2,'undeliverable':0...}response.reason_counts=>{'accepted_email':2,'rejected_email':0...}DevelopmentTests can be run with the following command:poetryruntoxContributingBug reports and pull requests are welcome on GitHub athttps://github.com/bernardoduarte/emailable-python-backport.
Package: emailage
Python emailAge integration wrapper usingrequests. Seeemailage.InstallationVia pip:pip install emailageExample Usageimportemailageemailage.api.get_emailage_score('wang@emailage.com',ip='142.136.211.118',customer_key='<key>',secret_token='<token>')SeetestsTodosre-organize package, i.e. emailage.get_score()LegalThis software is licensed under the BSD License.This software is not authored by, endorsed by, or in any way affiliated with
emailAge Corp.