Saravanan666/pypi-org huggingface dataset:
Package: ejabberdctl.py
READMEejabberdctl.pyprovides Python client for Ejabberd XML-RPC Administration API.Installationpip install ejabberdctl.pygit clone https://gitlab.com/markuz/ejabberdctl.py.git ejabberdctlpy
cd ejabberdctlpy
python setup.py installUsageSimple example which displays Ejabberd status
(assuming that XML-RPC runs on127.0.0.1and port4560):from ejabberdctl import ejabberdctl

host = 'example.com'
username = 'admin'
password = 'admin'

ejabberdctl = ejabberdctl(host, username, password)
print ejabberdctl.status()The same example with custom setting of XML-RPC host:from ejabberdctl import ejabberdctl

host = 'example.com'
username = 'admin'
password = 'admin'

ejabberdctl = ejabberdctl(host, username, password,
                          protocol='https', server='example.com', port=4560,
                          admin=True, verbose=True)
print ejabberdctl.status()Host vs Serverhostis the domain served by Ejabberd
(ie. one of yourhostsdefined inejabberd.yml).serveris the server IP where Ejabberd runs the XML-RPC module.
Typically it is configured to run on127.0.0.1(localhost) on port4560.Testsfrom ejabberdctl.tests import ejabberdctl_tests

SERVER = 'example.com'
USERNAME = 'admin'
PASSWORD = 'admin'

tests = ejabberdctl_tests(SERVER, USERNAME, PASSWORD)
tests.run_all()CoverageNumber of Ejabberd XML-RPC Administration API commands inejabberdctl.py:egrep "def " ejabberdctl.py|grep -v "def __init__\|def ctl"|wc -l
126ImplementationNumber of implemented commands:egrep "def " ejabberdctl.py|grep -v "def __init__\|def ctl\|TODO"|wc -l
72Number of commands to implement:egrep "def " ejabberdctl.py|grep -v "def __init__\|def ctl"|grep TODO|wc -l
54TestsNumber of tests in the testing suite:egrep "def " tests.py|grep -v "def __init__\|def run_all\|TODO"|wc -l
31Number of tests to implement:egrep "def " tests.py|grep -v "def __init__\|def run_all"|grep TODO|wc -l
95ContributingIf you wish to help out with the project, please seetodo.txtfor a list of tasks that need doing.Changelogv0.2changedejabberdctl.pyconstructor - host is now server and server is now host
ie. the terminology is aligned with what those inputs mean.
Also seeREADME;Host vs Serverinformation.v0.1initial version
Package: ejabberd-diaspora-auth
***********************ejabberd diaspora* auth***********************requirements------------* diaspora* postgres database* ejabberd server* python3features--------* authentication against *Diaspora database* parsing *Diaspora config files for database credentials and pepper* support for DIASPORA_DIR environmental variable (_/home/diaspora/diaspora_ by default)installation------------pip install ejabberd_diaspora_authejabberd configuration----------------------auth_method: externalextauth_program: "/usr/bin/diaspora_auth.py"
Package: ejabberd_htpasswd
Yet another ejabberd authentication bridge that uses apache-style
.htpasswd files.WarningCurrently,ONLYbcrypt-type hash passwords are supported in the
htpasswd file, i.e. hashes that start with$2a$or$2y$.ProjectHomepage:https://github.com/metagriffin/ejabberd-htpasswdBugs:https://github.com/metagriffin/ejabberd-htpasswd/issuesInstallation$sudoapt-getinstalllibffi-dev$pipinstallejabberd-htpasswdConfigurationUpdate the authentication configuration in your/etc/ejabberd/ejabberd.cfgfile:{auth_method,external}.{extauth_program,"/usr/local/bin/ejabberd-htpasswd /path/to/htpasswd"}.%% optional -- update as appropriate%% {extauth_instances, 2}.%% {extauth_cache, 300}.OptionsTheejabberd-htpasswdscript takes one optional positional argument,
the fully-qualified path to the “.htpasswd” file, and several optional
parameters:-d,--debug:Enable debug mode for more stuff in the log files.-l{FILENAME},--log-file{FILENAME}:The log file name, which will be rotated as defined by-sand-c; default:/var/log/ejabberd/auth-htpasswd.log.-sBYTES,--log-sizeBYTES:specify the maximum size of the log file in bytes before the log
file is rotated; default: 1048576 (1 MB).-cNUMBER,--log-countNUMBER:specify the maximum number of log rotation files; default: 10.-tEXPR,--domain-transformEXPR:specify a “sed”-style substitution expression for domain name
transformation; example:/.*\.example\.com$/example\.com/. Note
that when placed in the ejabberd config file, several layers of
escaping must be done, so you’ll need something like this to
accomplish the above:{extauth_program,"/usr/local/bin/ejabberd-htpasswd\\-t /.*\\\\.example\\\\.com$/example.com/\\/path/to/htpasswd"}.
Package: ejercicio4
Este es un ejemplo simple de un paquete Python. Este paquete contiene una funciÃ³n para encontrar todos los nÃºmeros primos desde 0 hasta un nÃºmero n ingresado.This program is free software: You can redistribute it and/or modify it under the terms of license by the Free Software Foundation, either version 3 of the License(at your option) any other version.
Package: ejnug
Publishing emails publicallyInstallingInstalling this package is easy.pip install ejnug(It works in Python 2.7 and 3.4.)This doesn’t set up the notmuch database, so you have to do that yourself.
You might use offlineimap to acquire your emails in a maildir, and then you
can configure notmuch to index that maildir.RunningRun this as the user that has the notmuch database configured.ejnugThis will create a web server onhttp://127.0.0.1:8081, and you can create
a proxy to that from Nginx or whatever if you want a prettier name.
Package: ejpcsvparser
ejp-csv-parserEJP CSV parser for building article objects.This library reads CSV files containing article manuscript data, creates objects defined in theelifearticlelibrary, and sets object properties from the CSV data values.Currently it reads CSV files for data including: title, abstract, DOI, editor, authors, group authors, license, received date, subjects, keywords, research organisms, datasets, funding, and ethics.Thesettings.pymodule defines file names, column names, angle bracket escape sequence, folder names, and similar settings which can be adjusted slightly if required.Theparse.pymodule is a good starting place to invoke the library, if given an article ID value, it can read the CSV files for data, create objects and set their properties for that particular article.Thecsv_data.pymodule contains the logic for reading the CSV files, linking rows from multiple files by their index columns, escaping and converting some character encoding, and accounting for comma characters that are not intende to delimit data fields.The objects instantiated by this library are used to generate a JATS XML file for a Publish on Accept (PoA) research article.Requirements and installa) Install frompypipackage indexpip install ejpcsvparserb) Install locallyClone the git repogit clone https://github.com/elifesciences/ejp-csv-parser.gitCreate a python virtual environment and activate itpython3 -m venv venv
source venv/bin/activateInstall it locallypip install -r requirements.txt
python setup.py installIn order to run the transform function as written, it will requirestrip-coverletterto be installed and ready to run locally, which will also requireDockerto be installed and running.Example usageThis library is meant to be integrated into another operational system, where the CSV files are downloaded from an S3 bucket and then processed. The test scenarios may provide more details about how it could be invoked, and the following example is a simple way to see how it works using interactive Python and using files from the"tests/test_data/"folder as the CSV input:>>>fromejpcsvparserimportparse>>>article,error_count,error_messages=parse.build_article(21598)>>>print(article.doi)10.7554/eLife.21598>>>print(article.title)Cryo-EMstructuresoftheautoinhibited<italic>E.coli</italic>ATPsynthaseinthreerotationalstatesRun code testsUsepytestfor testing, install it if missing:pip install pytestRun testspytestRun tests withcoverage(install it if missing):coverage run -m pytestthen report on code coveragecoverage report -mLicenseLicensed underMIT.
Package: ejpiaj
LicenseFree software: BSD licenseFeaturesdescribe your API requests in single file (YAML, JSON and XML at this moment) so you can store you API tests with code
in same repository (f.i. as ejpiaj.json file)file format is detected from file extension.yml,.jsonand.xmlextract variables from responses and store them to use in next requests (f.i. to get and use authorization token)write assertions agains responsesregister your own variables extractors and assertionsrun suite usingejpiaj-clitest-mmy_addons-stests.ymlcommandSample yml file:requests:
  001_search_repos_with_django_in_name:
    method: get
    url: https://api.github.com/search/repositories
    url_params:
      q: django
      sort: stars
      order: desc
    variables:
      json:
        total_count: count
        items.[0].full_name: repo_name
    assertions:
      response:
        - 'status_code equals 200'
      json:
        - 'items.[0].full_name contains ango'

  002_get_commits_from_first_repo:
    method: get
    url: https://api.github.com/repos/{{repo_name}}/commits
    assertions:
      response:
        - 'status_code equals 200'Run it:$ ejpiaj-cli test sample.yml -s

--------------------------------------------------------------------------------
P - passed assertions, F - failed assertions, V - extracted variables
--------------------------------------------------------------------------------
✓ 001_search_repos_with_django_in_name [P2,F0,V2] {'count': 29754, 'repo_name': u'django/django'}
✓ 002_get_commits_from_first_repo [P1,F0,V0] {}
--------------------------------------------------------------------------------SNI noteIn order to supportSNIin python 2.6/2.7 you need to install additional packages:pyOpenSSL, a Python wrapper module around the OpenSSL library.ndg-httpsclient, enhanced HTTPS support for httplib and urllib2.pyasn1, ASN.1 types and codecs.Documentationhttp://ejpiaj.readthedocs.org/en/latest/History0.4.4 (2015-01-21)Fixed unicode errors while reading str/int parameters0.4.3 (2014-09-10)Fixed compatibility with python 3.30.4.2 (2014-09-10)Fixed context replacing at variables replacing0.4.1 (2014-09-10)Fixed non unicode extracted variables0.4.0 (2014-03-11)Added support for xml and json files0.3.3 (2014-03-06)Added -e / –env option toejpiaj-clito pass initial variablesAdded -q / –quiet option toejpiaj-clito quiet output0.3.2 (2014-02-17)Added -s option toejpiaj-clito display extracted variables0.3.1 (2014-02-17)Fixed loading custom module from current directory0.3.0 (2014-02-16)Added support to load own module with custom assertions and variable extractors
usingejpiaj-clitool0.2.3 (2014-02-10)Fixed tests order (alphabetical)0.2.2 (2014-02-10)Fixed variable substiution for multi varaiblesAdded variable substitution in ‘url’0.2.1 (2014-02-07)Fixed variables substitution if variable is None0.2.0 (2014-02-07)Added support for form_params and headers0.1.0 (2014-02-01)First release on PyPI.
Package: ejplugins
ejpluginsParser plugins for thejsonextended packageand validation schema, to convert
output files from materials simulation packages to a JSON format.Usage>> pip install ejpluginsor, to use Pymatgen and ASE parsers:>> pip install ejplugins[science]Either use independently:fromejplugins.qespressoimportQEmainPluginwithopen("path/to/my.qe.out")asf:output=QEmainPlugin.read_file(f)Or withjsonextended:fromejplugins.qespressoimportQEmainPluginfromjsonextendedimportplugins,ejsonplugins.load_plugin_classes([QEmainPlugin])ejson.to_dict("path/to/qespresso/outputs")See ejplugins/test_files for example input/outputs.
Package: ejtp
EJTP is an overlay protocol that allows the pluggable use of underlying transports, such as UDP, TCP, HTTP, IRC, Email and carrier pigeon to provide a cryptographically secure network of unreliable message forwarding. You can think of it as a bit like a more general-purpose and security-minded successor to XMPP, using JSON rather than XML as its frame medium.On top of a simple frame format, EJTP boasts a consistent and simple format for describing encryption credentials, which is useful even without the rest of EJTP. The ejtp-crypto script makes it easy for other projects to take advantage of this pending a native port of ejtp.crypto to languages other than Python.The intention of EJTP is to make it trivial to establish secure and NAT-oblivious distributed services across a common network of message relays. Your system only has to worry about exchanging encryption credentials and establishing a connection with a relay host, helping to pave the way toward distributed apps that run entirely in HTML5 (pending a port of the project to JS). You can be serverlessandsmartphone-friendly.Optionally supports elliptic curve cryptography if thePyECCmodule is installed.For more technical and in-depth information, visit theGithub project.
Package: ejtraderDB
Install requirements:pipinstallejtraderDB-UDescription for DictSQliteimportfromejtraderDBimportDictSQliteapi=DictSQLite('history',multithreading=True)# save to sqliteapi["keyname"]=dataFrame# read from sqlitedataFrame=api['keyname']print(dataFrame)Description for QuestDbAPI wrapper following the basic API requirements of QuestDB describedhere.ImportfromejtraderDBimportQuestDBapi=QuestDB()Methods/imp - Import/impstreams tabular text data directly into a table. It supports CSV, TAB and pipe (|) delimited inputs with optional headers. There are no restrictions on data size. Data types and structures are detected automatically, without additional configuration. In some cases, additional configuration can be provided to improve the automatic detection as described inuser-defined schema.res=api.imp(filename="test.csv",name="ejtraderDB")Seeqdb_api.pyorAPI referencefor all possible parameters./exec - Execute queries/execcompiles and executes the SQL query supplied as a parameter and returns a JSON response.res=api.exec(query="SELECT * FROM ejtraderDB")SQL queries will be verified viasqlvalidator==0.0.17there might be issues with QuestDB SQL Syntax.Seeqdb_api.pyorAPI referencefor all possible parameters./exp - Export dataThis endpoint allows you to pass url-encoded queries but the request body is returned in a tabular form to be saved and reused as opposed to JSON.res=api.exp(query="SELECT * FROM ejtraderDB")you can now choose between the following output formats:CSV:qdb.exp(query="...", output="csv")DataFrame:qdb.exp(query="...", output="pandas"Seeqdb_api.pyorAPI referencefor all possible parameters.
Package: ejtraderRL
Table of contentsInstallTechnologiesHow to runUse custom modelInstallpip install ejtraderRL -UInstall from sourcegit clone https://github.com/ejtraderLabs/ejtraderRL.gitcd trade-rlpip install .TechnologiesTechnologiesversionpython>= 3.7tensorflow>= 2.7.0numpy>= 1.21.4pandas>= 1.3.4ta>= 0.7.0how to run from Web app visual trainingfromejtraderRLimportappapp.web()How to run from python scriptfromejtraderRLimportdata,agent# forex datadf=data.get_forex_data("EURUSD","h1")# stoch data#df = data.get_stock_data("AAPL")agent=agent.DQN(df=df,model_name="efficientnet_b0",lr=1e-4,pip_scale=25,n=3,use_device="cpu",gamma=0.99,train_spread=0.2,balance=1000,spread=7,risk=0.01)""":param df: pandas dataframe or csv file. Must contain open, low, high, close:param lr: learning rate:param model_name: None or model name, If None -> model is not created.:param pip_scale: Controls the degree of overfitting:param n: int:param use_device: tpu or gpu or cpu:param gamma: float:param train_spread: Determine the degree of long-term training. The smaller the value, the more short-term the trade.:param balance: Account size:param spread: Cost of Trade:param risk: What percentage of the balance is at risk"""agent.train()Use custom modelfromtensorflow.kerasimportlayers,optimizersfromejtraderRLimportnn,agent,data# forex datadf=data.get_forex_data("EURUSD","h1")# stoch datadf=data.get_stock_data("AAPL")agent=agent.DQN(df=df,model_name=None,lr=1e-4,pip_scale=25,n=3,use_device="cpu",gamma=0.99,train_spread=0.2,spread=7,balance=1000risk=0.1)defcustom_model():dim=32noise=layers.Dropoutnoise_r=0.1inputs,x=nn.layers.inputs_f(agent.x.shape[1:],dim,5,1,False,"same",noise,noise_r)x=nn.block.ConvBlock(dim,"conv1d","resnet",1,True,None,noise,noise_r)(x)out=nn.layers.DQNOutput(2,None,noise,noise_r)(x)model=nn.model.Model(inputs,x)model.compile(optimizers.Adam(agent.lr,clipnorm=1.),nn.losses.DQNLoss)returnmodelagent._build_model=custom_modelagent.build_model()first release of the project is from komo135
thanks to @komo135
Package: ejudge
`ejudge` is a library that implements a basic electronic judge/grader for code.It can run Python, Ruby, C, and C++ code in a sandbox and supporting otherlanguages is easy.This library uses the ``iospec`` format for specifying the expected inputs andoutputs for the some program execution. For more info, refer to the iospec_manual... _iospec: https://readthedocs.org/iospec/Command line============The ``ejudge`` accepts two sub-commands:``$ ejudge run <source> <inputs>``:Runs the given input source code and passes all inputs definedin the <inputs> file. The inputs may be either a simple text file with oneinput per line or an IoSpec source file with an `.iospec` extension.``$ ejudge grade <source> <iospec inputs>``:Runs the input source code and compares the result with the given IoSpectest cases. It than returns a feedback message telling if the code ran asexpected and, in case of errors, what are the probable problems.Library=======The main entry points in the :mod:`ejudge` module are the :func:`ejudge.run` and:func:`ejudge.grade` functions. The first is responsible for running code againsta set of inputs and collect the resulting IO. The second function runs code andcompares it with the expected iospec result.>>> from ejudge import run>>> src = 'print("hello %s!" % input("name: "))'>>> inputs = ['john']>>> spec = run(src, inputs, lang='python')>>> list(spec[0])  # fetch the first test case[Out('name: '), In('john'), Out('hello john!')]
Package: ejustian-cli
ejustian-cliejustian-cliDescriptionDependenciesInstallationMethod 1Method 2UsageFeaturesContributorsDescriptionA command line interface app that allows EJUST students to manage all their stuff.DependenciesPython>=3.8.* (Installation Guide)pip>=20.0.* (Installation Guide)InstallationMethod 1: Install Using PIPpipinstallejustian-cliMethod 2: Clone and Install Manuallypipinstallgit+https://github.com/Abdelrahman0W/ejustian-cli.gitClone this repogitclonehttps://github.com/Abdelrahman0W/ejustian-cli.gitChange directorycdejustian-cliInstall usingpippipinstall.UsageTo use the app use the following command in your terminalejFeaturesCurrent Features are checkedScrape SIS DataNameIDFacultyDegreeMajorLevelEnrollment StatusAcademic StatusTotal Passed CHRemaining CHCGPAAttendance TrackerPersonal Attendance TrackerShow Student AdvisorTask Manager (Kanban Style)E-JUST MapConnect to Nearest WiFiShow Student ScheduleExport Student Schedule to PDFExport Student Schedule to CalendarGoogle Classroom CLIJoin a ClassShow TO-DOShow ClassesSubmit AssignmentCheck GradesCheck Assignment GradeShow Class MaterialsShow Class PostsUseful EmailsAll '@ejust.edu.eg' EmailsIn-Lecture Note TakingCourse Grade TrackerPersonal VaultResume BuilderResume ScannerResume ATS CheckerInternships CheckerServices in Borg El-ArabBuilt-In MailerContributorsMaria GamalAbdelrahman WaelTameem AlaaAbdelrahman Nawar
Package: ek-aggregate
earthkit-aggregateA toolkit for statistical analysis of temporal-geospatial data.DISCLAIMERThis project isBETAand will beExperimentalfor the foreseeable future.
Interfaces and functionality are likely to change, and the project itself may be scrapped.DO NOTuse this software in any project/software that is operational.Quick StartInstallationpipinstallearthkit-aggregateImport and use>>>fromearthkitimportaggregateDetailed documentationPlease refer theearthkit-aggregate readthedocs pagefor more detailed documentation, example notebooks and the API reference guide.Workflow for developers/contributorsFor best experience create a new conda environment (e.g. DEVELOP) with Python 3.10:conda create -n DEVELOP -c conda-forge python=3.10
conda activate DEVELOPBefore pushing to GitHub, run the following commands:Update conda environment:make conda-env-updateInstall this package:pip install -e .Sync with the latesttemplate(optional):make template-updateRun quality assurance checks:make qaRun tests:make unit-testsBuild the documentation (seeSphinx tutorial):make docs-buildLicenseCopyright 2022, European Centre for Medium Range Weather Forecasts.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: ekankthdevx
ekankthdevx LibraryBlackWeb Userbot PyrogramDisclaimer️                       ⚠️ WARNING FOR YOU ️ ️⚠️
   ekankthdevx is used to help your account activities on Telegram
   We are not responsible for what you misuse in this repository
   !  Be careful when using this repository!
   If one of the members misuses this repository, we are forced to ban you
   Never ever abuse this repositoryInstallingpip3 install ekankthdevxExample [EVAL]fromekankthdevx.carbonimportmake_carbonwrite="i'am Ekankth"carbon=awaitmake_carbon(write)awaitc.send_photo(m.chat.id,carbon)
Package: ekankthian
ekankthian LibraryDarkWeb Userbot PyrogramDisclaimer️                       ⚠️ WARNING FOR YOU ️ ️⚠️
   ekankthian is used to help your account activities on Telegram
   We are not responsible for what you misuse in this repository
   !  Be careful when using this repository!
   If one of the members misuses this repository, we are forced to ban you
   Never ever abuse this repositoryInstallingpip3 install ekankthianExample [EVAL]fromekankthian.carbonimportmake_carbonwrite="i'am Ekankth"carbon=awaitmake_carbon(write)awaitc.send_photo(m.chat.id,carbon)
Package: ekankthk3x
ekankthk3x LibraryBlackWeb Userbot PyrogramDisclaimer️                       ⚠️ WARNING FOR YOU ️ ️⚠️
   ekankthk3x is used to help your account activities on Telegram
   We are not responsible for what you misuse in this repository
   !  Be careful when using this repository!
   If one of the members misuses this repository, we are forced to ban you
   Never ever abuse this repositoryInstallingpip3 install ekankthk3xExample [EVAL]fromekankthk3x.carbonimportmake_carbonwrite="i'am Ekankth"carbon=awaitmake_carbon(write)awaitc.send_photo(m.chat.id,carbon)
Package: ekankthkx
ekankthkx LibraryBlackWeb Userbot PyrogramDisclaimer️                       ⚠️ WARNING FOR YOU ️ ️⚠️
   ekankthkx is used to help your account activities on Telegram
   We are not responsible for what you misuse in this repository
   !  Be careful when using this repository!
   If one of the members misuses this repository, we are forced to ban you
   Never ever abuse this repositoryInstallingpip3 install ekankthkxExample [EVAL]fromekankthkx.carbonimportmake_carbonwrite="i'am Ekankth"carbon=awaitmake_carbon(write)awaitc.send_photo(m.chat.id,carbon)