Saravanan666/pypi-org huggingface dataset:
Package: examsage
ExamSageExamSage is a Python package for generating math problems in $LaTeX$. The goal of this project is to allow math instructors to create randomizable math problems and assessments without extensive programming knowledge.AcknowledgmentsThe name of this package is a tribute to  William Stein'sSageMathproject, which evolved into theCoCalcplatform. Without Stein's contributions to the open source community, ExamSage may have never moved beyond a pure $LaTeX$ solution.ExamSage interfaces with $LaTeX$ via Jelte Fennema'sPyLaTeXlibrary. Many of the classes provided by ExamSage inherit from classes provided by PyLaTeX. Also, much of my documentation design choices are modeled on the PyLaTeX documentation.WarningThis is my first package and is intended as a learning exercise. In other words, expect nothing to work and everything to change.InstallationExamSage is begin developed onCoCalcin Python 3.6.7 and it can be installed by running:pip install examsageSupportIf you are having issues, please let me know atmbarnard10@ivytech.eduLicenseThe project is licensed under theMITlicense.
Package: examuploader-sebastian-stigler
ExamUploaderA Web application to upload exam files to bySaveSumbitExam!InstallationCreate the userexamuploader, create some directories in its
home-directory and revoke other users access to them.# as user root:
adduser --disabled-password examuploader
mkdir /home/examuploader/{etc,secrets,upload}
chmod o-rwx /home/examuploader -R
chown examuploader:examuploader /home/examuploader -RAs userexamuploadercreate a virtualenv within its home-directory
and install the ExamUploader within.# as user examuploader:
cd ~
python3 -m venv venv
. ./venv/bin/activate
pip install examuploader-sebastian-stiglerCreate a config file, where you specify theupload_pathand alistof courses, that are allowed to upload files. Within the
each course you specify the course name (which is used as the name
of the subdirectory in theupload_pathfor it) and alistof
jupyterhub usernames of thestudentsin this course either
directly or as a name prefix by appending an asteriks to the end
(and only the end) of it. Make sure, that the course name follows
the pattern^[a-z0-9-]+$and the student name (prefix) follows the
pattern^[a-zA-Z0-9-]+$.# as user examuploader
# /home/examuploader/etc/config.yaml

upload_path: /home/examuploader/upload
courses:
  - name: python101
    students:
      - heinz
      - python101-*Create asystemd servicefile# /etc/systemd/system/examuploader.service
# systemd service file to start the examuploader

[Unit]
Description=ExamUploader backend
Wants=network.target
Documentation=https://in-stigler.htw-aalen.de/gitea/tools/examuploader

[Service]
Type=simple
User=examuploader
Group=examuploader
WorkingDirectory=/home/examuploader

Environment=EXAM_UPLOADER_SECRETS_DIR=/home/examuploader/secrets
Environment=EXAM_UPLOADER_CONFIG=/home/examuploader/etc/config.yaml

ExecStart=/home/examuploader/venv/bin/uvicorn examuploader.main:app --host 127.0.0.1 --port 8000 --workers 3
# Use SIGINT to stop
KillSignal=SIGINT
# Auto restart on crash
Restart=on-failure
RestartSec=20
# Tag things in the log
SyslogIdentifier=ExamUploader
#StandardOutput=syslog

[Install]
WantedBy=multi-user.targetand install and activate the serivices.# Enable and start the service
systemctl daemon-reload
systemctl enable examuploader.service
systemctl start examuploader.serviceNoteThis project has been set up using PyScaffold 4.5. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: exapi
Exapi (Exchange API)Install pyenvpyenv-installercurlhttps://pyenv.run|bashAdd to ~/.profileif[-d"$HOME/.pyenv"];thenexportPYENV_ROOT="$HOME/.pyenv"command-vpyenv>/dev/null||exportPATH="$PYENV_ROOT/bin:$PATH"eval"$(pyenvinit-)"eval"$(pyenvvirtualenv-init-)"fiUpdatepyenvupdateInstall python 3.11pyenvpyenvinstall3.11.1
pyenvglobal3.11.1Getting StartedUpdate pippython3-mpipinstall--upgradepip
python3-mpipinstall--upgradesetuptoolsCreating a virtual environmentrm-rfvenv
python3-mvenvvenvInstall the module in development modepython3-mpipinstall-Ue'.[dev]'Buildpython3-mbuild# ORhatchbuildAuthenticate with the Package RegistryEdit the~/.pypircfile and add:[pypi]username=__token__password=pypi-TOKENDeploy to pypipython3-mtwineupload--repositorypypidist/*Clear__pycache__py3clean.Read:Github-flavored MarkdownhatchlingGitLab PyPi RepositoryPackaging Python ProjectsVirtual environments
Package: exapp
ExAppA Python Example Launcher ApplicationOverviewExApp is a Python-based application designed to streamline the process of running Python scripts. It's an ideal tool for developers and users who frequently test or demonstrate multiple Python scripts. By simply executingpython -m exapp <target_folder>, ExApp initiates a user-friendly, explorer-like interface that allows for the seamless execution of .py files located within the specified target folder.FeaturesExplorer-Like Interface: Navigate through your Python scripts as you would in a file explorer, providing a familiar and intuitive user experience.One-Click Execution: Run any.pyfile with a single click, eliminating the need to manually enter script paths or commands in the terminal.Folder Specific Search: Specify the target folder to focus on the scripts relevant to your current project or demonstration.Lightweight and Easy-to-Use: Designed with simplicity in mind, ExApp is straightforward to set up and operate, requiring minimal configuration.Installation and UsageInstallation: Download the ExApp package and install it using Python. Ensure that Python is correctly installed on your system.Launching the Application: Open a terminal or command prompt and navigate to the ExApp directory. Run the application with the commandpython -m exapp <target_folder>, where<target_folder>is the path to the folder containing your Python scripts.Using ExApp: Once launched, ExApp displays all.pyfiles in the specified folder. Click on any script to run it, and view the output directly within the ExApp interface.RequirementsPython: Make sure you have Python installed on your system.Dependencies: ExApp relies on standard Python libraries, ensuring compatibility and ease of use.Support and ContributionFor support, questions, or contributions, please visit our GitHub repository. We welcome feedback and contributions to improve ExApp and expand its capabilities.ExApp offers a convenient and efficient way to run and demonstrate Python scripts, tailored for both developers and casual users. Try it out and streamline your Python script execution process!
Package: exa-py
ExaExa (formerly Metaphor) API in PythonNote: This API is basically the same asmetaphor-pythonbut reflects new
features associated with Metaphor's rename to Exa. New site ishttps://exa.aiInstallationpipinstallexa_pyUsageImport the package and initialize the Exa client with your API key:fromexa_pyimportExaexa=Exa(api_key="your-api-key")Common requests# basic searchresults=exa.search("This is a Exa query:")# autoprompted searchresults=exa.search("autopromptable query",use_autoprompt=True)# keyword search (non-neural)results=exa.search("Google-style query",type="keyword")# search with date filtersresults=exa.search("This is a Exa query:",start_published_date="2019-01-01",end_published_date="2019-01-31")# search with domain filtersresults=exa.search("This is a Exa query:",include_domains=["www.cnn.com","www.nytimes.com"])# search and get text contentsresults=exa.search_and_contents("This is a Exa query:")# search and get highlightsresults=exa.search_and_contents("This is a Exa query:",highlights=True)# search and get contents with contents optionsresults=exa.search_and_contents("This is a Exa query:",text={"include_html_tags":True,"max_characters":1000},highlights={"highlights_per_url":2,"num_sentences":1,"query":"This is the highlight query:"})# find similar documentsresults=exa.find_similar("https://example.com")# find similar excluding source domainresults=exa.find_similar("https://example.com",exclude_source_domain=True)# find similar with contentsresults=exa.find_similar_and_contents("https://example.com",text=True,highlights=True)# get text contentsresults=exa.get_contents(["ids"])# get highlightsresults=exa.get_contents(["ids"],highlights=True)# get contents with contents optionsresults=exa.get_contents(["ids"],text={"include_html_tags":True,"max_characters":1000},highlights={"highlights_per_url":2,"num_sentences":1,"query":"This is the highlight query:"})
Package: exaroton
exarotonA Python Wrapper for theexaroton APISimply get an API Token fromyour Accountand you're good to go.Installationexaroton requires Python 3.7 or newer.python3-mpipinstall-UexarotonA Virtual Environment is recommended to not mess with system installs.
This module has minimal requirements (requests), but you can never be safe enough.python3-mvenvvenvsource./venv/bin/activate
pipinstallexarotonExample UsageCurrently all methods are (in my opinion) well documented and properly typehinted.
If you see something wrong, don't hestitate tocreate an Issue.I may create a full list of all available methods, or even utilize readthedocs.org# Import exaroton and set our token>>>fromexarotonimportExaroton>>>exa=Exaroton("API_TOKEN")# Get information about the authenticated account>>>exa.get_account(){"_":"Account","name":"Username","email":"email@example.org","verified":true,"credits":420.69}# Get a list of our servers>>>exa.get_servers()[{"_":"Server","id":"7ZxuNK5RX879BFaH",# Thanks, random.org!...},{"_":"Server","id":"Kf48Td5iVlr8Xu24",# Thanks, random.org!...}]# Upload logs to https://mclo.gs>>>exa.upload_logs("7ZxuNK5RX879BFaH"){"_":"Logs","id":"N5FR4K2",# Thanks, random.org!"url":"https://mclo.gs/N5FR4K2","raw":"https://api.mclo.gs/1/raw/N5FR4K2"}# Print logs (this'll most likely spam your output lol)>>>exa.get_server_logs("7ZxuNK5RX879BFaH")'one extremely long string with lines seperated by the newline escape character\n'# It'll print each line seperately when used with `print()`!All you need to make calls to the API is the Authentication Token you can get
from your account page. If you make server-specific calls, you'll need that
servers ID, too.The boring stuffLicensed underMIT
Package: exarth-rest-auth
Django Rest Auth!This library is a fork of the popular django-rest-auth library, with some customizations and additional features added to suit my specific use case.FeaturesUser registration and authentication using email and passwordUser management (view, update, and delete)Token-based authenticationPassword reset and change functionalitySocial authentication (e.g. Facebook, Google)InstallationTo install this library, simply run the following command:
Copy codepip install git+https://github.com/saqib-devops/django-rest-auth-exarth-version.git
-------------------------OR-------------------------------------
pip install exarth-rest-authUsageTo use this library in your Django project, follow these steps:Add exarth_rest_auth to your INSTALLED_APPS in settings.pyINSTALLED_APPS=['exarth_rest_auth','exarth_rest_auth.registration']Add the library's URLs to your urls.py:urlpatterns+=[re_path(r'^rest-auth/',include('exarth_rest_auth.urls')),re_path(r'^rest-auth/registration/',include('exarth_rest_auth.registration.urls')),]JWT Support (JSON web token)By default dj-rest-auth uses Django’s Token-based authentication. If you want to use JWT authentication, follow these steps:pip Install djangorestframework-simplejwtdjangorestframework-simplejwt is currently the only supported JWT library.Add a simple_jwt auth configuration to the list of authentication classes.REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES':(
    'exarth_rest_auth.jwt_auth.JWTCookieAuthentication',
)
}Add the following configuration value to your settings file to enable JWT authentication in dj-rest-auth.REST_USE_JWT = TrueDeclare what you want the cookie key to be called. If you want to use the refresh token feature, also be sure to set that variable.JWT_AUTH_COOKIE = 'my-app-auth'JWT_AUTH_REFRESH_COOKIE = 'my-refresh-token'This example value above will cause dj-rest-auth to return a Set-Cookie header that looks like this:Set-Cookie: my-app-auth=xxxxxxxxxxxxx; expires=Sat, 28 Mar 2020 18:59:00 GMT; HttpOnly; Max-Age=300; Path=/If JWT_AUTH_REFRESH_COOKIE is also set, it will also set a comparable cookie for that. JWT_AUTH_COOKIE is also used while authenticating each request against protected views.NoteThe remaining features are same as rest auth , the only difference is it support latest version of Django
Package: exasol-bucketfs
Exasol Bucketfs is a python library to interact with ExasolBucketfs-Service(s).🚀 FeaturesList all buckets of a bucketfs serviceList all files in a bucketDownload files from bucketfsUpload files to bucketfsDelete files from bucketfsPythonic API🔌️ PrerequisitesPython>= 3.8💾 Installationpipinstallexasol-bucketfs📚 DocumentationThe latest documentation can be foundhere.
Package: exasol-error-reporting
Exasol Error ReportingThis project contains a Python library for describing Exasol error messages.
This library lets you define errors with a uniform set of attributes.
Furthermore, the error message is implemented to be parseable,
so that you can extract an error catalog from the code.In a NutshellInstall the librarypipinstallexasol-error-reportingCreate a Simple Errorfromexasolimporterrorerror1=error.ExaError("E-TEST-1","A trivial error","No mitigation available",{})Specify Multiple Mitigationsfromexasolimporterrorerror2=error.ExaError("E-TEST-2","Fire in the server room",["Use the fire extinguisher","Flood the room with halon gas (Attention: be sure no humans in the room!)"],{})Error Parameter(s) without descriptionfromexasolimporterrorerror3=error.ExaError("E-TEST-2","Not enough space on device {{device}}.","Delete something from {{device}}.",{"device":"/dev/sda1"},)Error with detailed Parameter(s)fromexasolimporterrorfromexasol.errorimportParametererror4=error.ExaError("E-TEST-2","Not enough space on device {{device}}.","Delete something from {{device}}.",{"device":Parameter("/dev/sda1","name of the device")},)Check out theuser guidefor more details.ToolingTheexasol-error-reportinglibrary comes with a command line tool (ec) which also can be invoked
by using its package/module entry point (python -m exasol.error).
For detailed information about the usage consider consulting the helpec --helporpython -m exasol.error --help.Parsing the error definitions in a python file(s)ecparsesome-python-file.pyecparse<some-python-file.pyGenerating an error-code data fileIn order to generate aerror-code-reportcompliant data file,
you can use the generate subcommand.ecgenerateNAMEVERSIONPACKAGE_ROOT>error-codes.jsonKnown IssuesThrows exception on invalid error code formatSingle mitigations only can be passed within a listNamed parameters do not work for error constructionInformation for UsersUser GuideChangelogYou can find corresponding libraries for other languages here:Error reporting JavaError reporting LuaError reporting GoError reporting C#Information for ContributorsSystem Requirement SpecificationDesignDependencies
Package: exasol-error-reporting-python
Error Reporting PythonThis project contains a python library for describing Exasol error messages.
This library lets you define errors with a uniform set of attributes.
Furthermore, the error message  is implemented to be parseable,
so that you can extract an error catalog from the code.In a NutshellCreate an error object:exa_error_obj=ExaError.message_builder('E-TEST-1')\.message("Not enough space on device {{device}}.")\.mitigation("Delete something from {{device}}.")\.mitigation("Create larger partition.")\.parameter("device","/dev/sda1","name of the device")Use it as string:print(exa_error_obj)Result:E-TEST-1: Not enough space on device '/dev/sda1'. Known mitigations:
* Delete something from '/dev/sda1'.
* Create larger partition.Check out theuser guidefor more details.Information for UsersUser GuideChangelogYou can find corresponding libraries for other languages here:Error reporting JavaError reporting LuaError reporting GoError reporting C#Information for ContributorsSystem Requirement SpecificationDesignDependencies
Package: exasol-integration-test-docker-environment
This project provides a command line interface and a Python API layer to
start a test environment with anExasol
Docker-DB. Both start an
Exasol Docker-DB container, but the API Layer has extended functionality
and also can start an associated test container for whose content the
client is responsible.DocumentationDocumentation for the current main branchis hosted on the Github Pages of this project.Hereis a list of documentations for previous releases.
Package: exasol-notebook-connector
Exasol Notebook ConnectorConnection configuration management and additional tools for Jupyter notebook applications provided by Exasol company.FeaturesExasol Notebook Connector (ENC) currently contains aSecret Storethat can be used in Jupyter notebook applications to store arbitrary credentials and configuration items, such as user names, passwords, URLs, etc.By that users of such notebook applicationsneed to enter their credentials and configuration items only oncecan store them in a secure, encrypted, and persistent file based on SQLite andcoleifer/sqlcipher3can use these credentials and configuration items in their notebook applicationsUsagefrompathlibimportPathfromexasol.nb_connector.secret_storeimportSecretsfile="password_db.sqlite"secrets=Secrets(Path(file),"my secret password")key="my key"secrets.save(key,"my value")value=secrets.get(key)Constraints and Special SituationsIf file does not exist then SecretStore will create it.If password is wrong then SecretStore will throw an exception.If file contains key from a session in the past then methodsecrets.save()will overwrite the value for this key.If key is not contained in file then SecretStore returnsNone.Saving multiple keys can be chained:secrets.save("key-1", "A").save("key-2", "B")
Package: exasol-toolbox
🚀 FeaturesCentrally managed standard taskscode formatting & upgradinglintingtype-checkingunit-testsintegration-testscoveragedocumentationCentrally manged core workflowsworkspace/project verificationbuild and publish releasesbuild and publish documentationConfigurable & ExtensibleProject configurationEvent hooks🔌️ PrerequisitesPython>= 3.8💾 Installationpipinstallexasol-toolbox📚 DocumentationThe latest documentation can be foundhere
Package: exatomic
[![exatomic logo](docs/source/static/logo.png)](https://exa-analytics.github.io)A unified platform for computational chemists![](docs/source/static/demo.gif)
![](docs/source/static/water-demo.gif)# Installation
[![conda Badge](https://anaconda.org/exaanalytics/exatomic/badges/installer/conda.svg)](https://conda.anaconda.org/exaanalytics)[![pypi badge](https://badge.fury.io/py/exatomic.svg)](https://badge.fury.io/py/exatomic)Exa is available through [anaconda](https://www.continuum.io/downloads)$ conda install -c exaanalytics exatomicor [pypi](https://pypi.python.org/pypi).$ pip install exatomic
$ jupyter nbextension enable –py –sys-prefix exatomic# Getting StartedSee [docs](https://exa-analytics.github.io/exatomic/) for usage.Building the docs requires [sphinx](http://www.sphinx-doc.org/en/stable). On Linux or Mac:$ cd docs
$ make htmlOn Windows:$ cd docs
$ ./make.bat html# Contributing[![Travis-CI](https://travis-ci.org/exa-analytics/exatomic.svg?branch=master)](https://travis-ci.org/exa-analytics/exatomic)[![AppVeyor](https://ci.appveyor.com/api/projects/status/0r60r3n1w52mi4mj?svg=true)](https://ci.appveyor.com/project/avmarchenko/exatomic)[![Codacy Badge](https://app.codacy.com/project/badge/Grade/5d09bae30d6746d1be212f881579bae3)](https://www.codacy.com/gh/exa-analytics/exatomic?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=exa-analytics/exatomic&amp;utm_campaign=Badge_Grade)[![Coverage Status](https://coveralls.io/repos/github/exa-analytics/exatomic/badge.svg?branch=master)](https://coveralls.io/github/exa-analytics/exatomic?branch=master)For a development ready installation:$ git clonehttps://github.com/exa-analytics/exatomic.git$ cd exatomic
$ pip install -e .
$ jupyter nbextension install –py –symlink –sys-prefix exatomic
$ jupyter nbextension enable –py –sys-prefix exatomicNote that this requires npm. On Windows, symlinks will not work but as a work-
around, extensions can be recompiled and reinstalled upon edits without the
need to reinstall the package.# Reference
[![DOI](https://zenodo.org/badge/23807/exa-analytics/exatomic.svg)](https://zenodo.org/badge/latestdoi/23807/exa-analytics/exatomic)# Legal
[![Apache License 2.0](http://img.shields.io/:license-apache-blue.svg?style=flat-square)](http://www.apache.org/licenses/LICENSE-2.0)
Copyright (c) 2015-2022, Exa Analytics Development Team
Distributed under the terms of the Apache License 2.0
Package: exavault
ExaVault Python API Library - v2 APIWelcome to ExaVault's Python code library for our v2 API. Use our API to interact with all aspects of the service the same way our web portal would. The library is generated from our API'spublic swagger YAML file.RequirementsThe SDK supports the following versions of Python:Python 2 versions 2.7.9 and laterPython 3 versions 3.4 and laterYou will also need an ExaVault account, as well as an API key and access token.Installing the Code LibraryOption 1 - Using PIPYou can use pip to add this library to your project by running this command in your project folder:%pipinstallexavaultOption 2 - Manual InstallationAlternatively, you can:Clone the repogit clone https://github.com/ExaVault/evapi-python.git evapi-pythonor manually download the library.Run setup scriptpython setup.py installDepending on your python setup, you may need to run the script as root; e.g.sudo python setup.py installSample CodeFor a gentle introduction to using Python code with ExaVault's API, check outour code samples. Follow the instructions in that repository's README to run the sample scripts, which will demonstrate how to use several of the APIs to interact with your ExaVault account.Writing Your Own CodeWhen you're ready to write your own code using this library, you'll need to:Install our code library in your project, either withpip install exavaultor by downloading this repository and importing the package directlyProvide your API key and access token with every function method on the Api classesWhenever you instantiate an Api object (ResourcesApi, UsersApi, etc.), override the configuration to point the code at the correct API URL:fromexavaultimportAccountApiACCOUNT_URL="https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/";account_api=AccountApi()account_api.api_client.configuration.host=ACCOUNT_URLfromexavaultimportResourcesApiACCOUNT_URL="https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/";resources_api=ResourcesApi()resources_api.api_client.configuration.host=ACCOUNT_URLfromexavaultimportNotificationsApiACCOUNT_URL="https://YOUR_ACCOUNT_NAME_HERE.exavault.com/api/v2/";notifications_api=NotificationsApi()notifications_api.api_client.configuration.host=ACCOUNT_URLIf you'd like to see this done in sample code, please take a look atour code samples.Authorsupport@exavault.com
Package: exbackoff
Python Backoff Decorator========================This package implements exponential backoff as a decorator.  Backoff istriggered by an exception and is reset when the call is successful.Usage-----Apply exponential backoff to any function or method by simply adding thedecorator:```pythonimport backoffimport requests@backoff.Backoff()def send_data(data):requests.post('https://example.com/data', data={'data': data})try:send_data('foo')except:# do something with data that wasn't posted```In the example above calls to `send_data()` will exponentially backoff whenPOST is not successful.Calls During Backoff Period---------------------------Any calls made during the backoff period will raise an `InBackoff` exception.Setting Maximum Backoff-----------------------By default the maximum backoff is 1 hour.  The `max_backoff` argument can bepassed to change the default; the following will only backoff for 5 minutes:```python@backoff.Backoff(max_backoff=300)def send_data(data):requests.post('https://example.com/data', data={'data': data})```