Saravanan666/pypi-org huggingface dataset:
Package: inspira
InspiraInspira is a lightweight framework for building asynchronous web applications.Quick StartPrerequisitesMake sure you have Python andpipinstalled on your system.Create a Python Virtual Environment# Create a new directory for your project$mkdirmyproject
$cdmyprojectCreate and activate a virtual environment$python-mvenvvenv
$sourcevenv/bin/activateInstall Inspira$pipinstallinspiraGenerating an AppTo generate a new app for your project, run the following command:$inspirainitGenerated Directory StructureAfter running theinitcommand, the directory structure of your project should look like the following:├──main.py
├──src
│├──__init__.py
│├──controller
││└──__init__.py
│├──model
││└──__init__.py
│├──repository
││└──__init__.py
│└──service
│└──__init__.py
└──tests└──__init__.pyGenerate Database fileUse the following command to generate a database file:$inspiranewdatabase--namemydb--typesqliteThis command will create a new database file namedmydbwithSQLiteas the database type.The generated database file (database.py) will typically contain initial configurations and may look like this:fromsqlalchemyimportcreate_enginefromsqlalchemy.ormimportdeclarative_base,scoped_session,sessionmakerengine=create_engine("sqlite:///mydb.db")db_session=scoped_session(sessionmaker(autocommit=False,autoflush=False,bind=engine))Base=declarative_base()Base.query=db_session.query_property()Generating ControllerTo generate necessary controller for your project, run the following command:$inspiranewcontrollerorderGenerating RepositoryTo generate repository file, run the following command:$inspiranewrepositoryorderGenerating ServiceTo generate service file, run the following command:$inspiranewserviceorderGenerating ModelTo generate model file, run the following command:$inspiranewmodelorderStarting the ServerAfter generating your app and setting up the necessary resources, start the server with the following command:$uvicornmain:app--reloadLinksDocumentation:https://www.inspiraframework.com/LicenseThis project is licensed under the terms of the MIT license.
Package: inspirational-quotes
Inspirational QuotesA simplePypiPackage which returns randomInspirational Quotes. It provides Inspirational quotes to display in your application. Get your daily quote and stay motivated!Clickhereto view this package on PYPI registry.Installation$pipinstallinspirational-quotesUsagefrom inspirational_quotes import quote

quote = quote()
print(quote)Output:{'quote': 'I didn’t go to college, but if I did, I would’ve taken all my tests at a restaurant, ’cause ‘The customer is always right.’', 'author': 'Mitch Hedberg'}give your love & support by adding a :star: torepo. Happy Hacking. Thank you
Package: inspire-classifier
..This file is part of INSPIRE.Copyright (C) 2014-2018 CERN.INSPIRE is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.INSPIRE is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with INSPIRE. If not, see <http://www.gnu.org/licenses/>.In applying this license, CERN does not waive the privileges and immunitiesgranted to it by virtue of its status as an Intergovernmental Organizationor submit itself to any jurisdiction.====================inspire-classifier====================.. image:: https://travis-ci.org/inspirehep/inspire-classifier.svg?branch=master:target: https://travis-ci.org/inspirehep/inspire-classifier.. image:: https://coveralls.io/repos/github/inspirehep/inspire-classifier/badge.svg?branch=master:target: https://coveralls.io/github/inspirehep/inspire-classifier?branch=masterAbout=====INSPIRE module aimed at automatically classifying the new papers that are added to INSPIRE, such as if they are core or not, or the arXiv category corresponding to each of them.Run the development server with:.. highlight:: bash$ FLASK_DEBUG=true FLASK_APP=inspire_classifier/app.py flask runExample:.. highlight:: bash$ curl -i http://127.0.0.1:5000/api/predict/coreness --data "{\"title\": \"Alice In Wonderland\", \"abstract\": \"The reader is conveyed to Wonderland, a world that has no apparent connection with reality...\"}"HTTP/1.0 200 OKContent-Type: application/jsonContent-Length: 52Server: Werkzeug/0.14.1 Python/3.6.4Date: Wed, 22 Aug 2018 13:00:16 GMT{"score1": 0.1,"score2": 0.2,"score3": 0.7}
Package: inspire-crawler
Crawler integration with INSPIRE-HEP using scrapy projectHEPCrawl.This module allows scheduling of crawler jobs to aScrapydinstance serving
aScrapyproject. E.g. in this case the default scrapy project isHEPCrawl.It integrates directly withinvenio-workflowsmodule to create workflows for every
record harvested by the crawler.This module is meant to use only withINSPIRE-HEPoverlay.Use at own risk.Full documentation is hosted here:http://pythonhosted.org/inspire-crawler/See also documentation of HEPCrawl:http://pythonhosted.org/hepcrawl/
Package: inspiredco
Inspired Cognition API ClientThis is the API client toInspired Cognitionservices.Getting StartedTo install the client, make sure you have Python 3.8 or higher, and then run the
following command:pipinstallinspiredcoTo use the API, you will need an API key. You can obtain one by traveling to theInspired Cognition Dashboard.UsageSee the documentation at the links below for more detailed usage.Critique
Package: inspired-django-utils
# IS Django UtilsDjango Utils is a collection of utils for Django.## Quick start1. Add "django-utils" to your INSTALLED_APPS setting like this:```INSTALLED_APPS = [...'django_utils',...]```## AdminWithSelectRelated- Usage:```from django_utils.admin import AdminWithSelectRelatedclass AlumnoAdmin(AdminWithSelectRelated):list_display = ('estudiante', 'seccion', 'anio_lectivo', )list_filter = (('seccion', SeccionFilter),'seccion__grado__anio_lectivo',)inlines = (AlumnoServicioInlineAdmin, AlumnoItemInlineAdmin, )list_select_related = ('estudiante__profile', 'seccion__grado__anio_lectivo', )```## AdminInlineWithSelectRelated- Usage:```from django_utils.admin import AdminInlineWithSelectRelatedclass AlumnoItemInlineAdmin(AdminInlineWithSelectRelated):model = AlumnoItemlist_select_related = ('alumno__estudiante__profile', 'item__anio_lectivo', )```## FilterWithSelectRelated```from django_utils.admin import FilterWithSelectRelatedclass SeccionFilter(FilterWithSelectRelated):list_select_related = ('grado', )```
Package: inspire-info
inspire_infoPackage to retrieve more complex info from inspire than the web-interface allowsFree software: MIT licenseDocumentation:https://inspire-info.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-04-22)First release on PyPI.
Package: inspire-service-orcid
[![Build Status](https://travis-ci.org/puntonim/inspire-service-orcid.svg?branch=master)](https://travis-ci.org/puntonim/inspire-service-orcid)# Inspire ORCID service clientThis package is service client for ORCID API used in inspire-next.## Client usage```python# Configure settings.import inspire_service_orcid.confd = dict(DO_USE_SANDBOX=False,CONSUMER_KEY='myorcidappkey',CONSUMER_SECRET='myorcidappsecret',REQUEST_TIMEOUT=30,)inspire_service_orcid.conf.settings.configure(**d)# Use the client.from inspire_service_orcid.client import OrcidClientclient = OrcidClient('mytoken', '0000-0002-0942-3697')response = client.get_all_works_summary()response.raise_for_result()putcode = response['group'][0]['work-summary'][0]['put-code']```In order to use time_execution to collect metrics, configure it first:```pythonimport time_executionfrom inspire_service_orcid import hookshooks = [hooks.status_code_hook,hooks.orcid_error_code_hook,hooks.orcid_service_exception_hook,]time_execution.settings.configure(backends=[mybackend],hooks=hooks,origin='inspire_next')```## Development```bash# Create a venv and install the requirements:$ make venv# Run isort and lint:$ make isort$ make lint# Run all the tests:$ make test  # tox against Python27 and Python36.$ tox -e py27  # tox against a specific Python version.$ pytest  # pytest against the active venv.# Run a specific test:$ make test/tests/test_client.py  # tox against Python27 and Python36.$ tox -e py27 -- tests/test_client.py  # tox against a specific Python version.$ pytest tests/test_client.py  # pytest against the active venv.```To publish on PyPi, first set the PyPi credentials:```bash# Edit .pypirc:$ cat $HOME/.pypirc[pypi]username: myuserpassword: mypass``````bash# Tag the new version:$ git tag 1.1.1# Then generate setup.py and publish:$ make setup.py$ make publish# Commit the setup.py file:$ git add .$ git commit -m '1.1.1 released'$ git push origin master --tags```
Package: inspiretools
INSPIRE toolsThis Python 3 package provides two scripts,auxtobibandblgtobib, which take a LaTeX.auxor.blgfile as input.auxtobibfetches thebibtexentries for all the articles cited in the document fromINSPIRE.blgtobibdoes the same, but only fetches those entries which are missing.InstallationTo install the package in your home directory, runpython3 -m pip install inspiretools --userRequirementsThe script requires Python 3.5+.UsageGiven a LaTeX.auxfile, simply executeauxtobib paper.auxand thebibtexentries will be printed tostdout. If you want to save them
into a.bibfile, simply useauxtobib paper.aux > bibliography.bibThe scriptblgtobibwill fetch onlybibtexentries which are not already in
the.bibfile associated with your project. It uses thebibtexlog file
associated with the LaTeX project. For example,blgtobib paper.blg >> bibliography.bibwill append new entries tobibliography.bib.
Package: inspiro
Inspirobot APIA Python3 api wrapper forInspiroBotRequirementsPython 3.5+RequestsInstallUsing PyPi (Pip)python3-mpipinstallinspiroUsing Gitpython3-mpipinstallgit+https://github.com/SamHDev/inspiro.gitManualgitclonehttps://github.com/SamHDev/inspiro.gitinspiro_pythoncdinspiro_python
python3-mpip-rrequirements.txt
python3-mpipinstall.UsageGenerating a classic Quote Imageimportinspirobot# Import the libaryquote=inspirobot.generate()# Generate Imageprint(quote.url)# Print the urlUsing the mindfullness (flow) APIimportinspirobot# Import the libaryflow=inspirobot.flow()# Generate a flow objectforquoteinflow:print(quote.text)Spamming the mindfullness (flow) APIimportinspirobot# Import the libaryflow=inspirobot.flow()# Generate a flow objectforiinrange(0,100):forquoteinflow:print(quote.text,quote.image.url)flow.new()print("-"*50)HTTP ModeDoes your work/school network use https interception? Mine sure does!importinspirobotinspirobot.HTTPS=False
Package: inspqcommun
# Modules communs Python de l’INSPQCe package contient les modules communs de l’INSPQ## Module userprovisioning.scimImplémentation SCIM pour PythonCe module permet de manipuler les utilisateurs et le groupes SCIM.Il permet aussi de consommer des services SCIM.## Module identity.keycloakClient Python pour KeycloakCe module permet d’interagir avec un serveur Keycloak pour OpenID Connect.Actuellement, la seule fonctionnalité implantée est l’obtention d’un access token Open ID Connect.
Package: insprd
Python interface to Inspired PlatformInstallation$ pip install -r requirements.txt

$ pip install setup.pyDevelopmentThis project includes a number of helpers in theMakefileto streamline common development tasks.Environment SetupThe following demonstrates setting up and working with a development environment:### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run insprd cli application

$ insprd --help


### run pytest / coverage

$ make testReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-uploadDeploymentsDockerIncluded is a basicDockerfilefor building and distributingInspired Python,
and can be built with the includedmakehelper:$ make docker

$ docker run -it insprd --help
Package: insprdcli
Command-line interface into Inspired PlatformInstallation$ pip install -r requirements.txt

$ pip install setup.pyDevelopmentThis project includes a number of helpers in theMakefileto streamline common development tasks.Environment SetupThe following demonstrates setting up and working with a development environment:### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run insprdcli cli application

$ insprdcli --help


### run pytest / coverage

$ make testReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-uploadDeploymentsDockerIncluded is a basicDockerfilefor building and distributingInspired CLI,
and can be built with the includedmakehelper:$ make docker

$ docker run -it insprdcli --help
Package: insprio
#Inspirobot APIA Python3 api wrapper forInspiroBotRequirementsPython3.5 +RequestsInstallUsing PyPi (Pip)python3-mpipinstallinspiroUsing Gitpython3-mpipinstallgit+<GIT_URL>Manualgitclone<GIT_URL>inspiro_pythoncdinspiro_python
python3-mpip-rrequirements.txt
python3-mpipinstall.UsageGenerating a classic Quote Imageimportinspirobot# Import the libaryquote=inspirobot.generate()# Generate Imageprint(quote.url)# Print the urlUsing the mindfullness (flow) APIimportinspirobot# Import the libaryflow=inspirobot.flow()# Generate a flow objectforquoteinflow:print(quote.text)Spamming the mindfullness (flow) APIimportinspirobot# Import the libaryflow=inspirobot.flow()# Generate a flow objectforiinrange(0,100):forquoteinflow:print(quote.text,quote.image.url)flow.new()print("-"*50)HTTP ModeDoes your work/school network use https interception? Mine sure does!importinspirobotinspirobot.HTTPS=FalseThat should fix it
Package: inspy-logger
inSPy-LoggerInstallationPrerequisites:Platform/Env:Python: ^3.6.3PIP: (If you want to install via PIP, that is)inSPy-Logger Runtime Dependencies:
I am providing this list of dependencies for transparency and for instances where one would not be able to install inSPy-Logger via PyPi's package manager. It ishighlyrecommended you usepython3 -m pip install inspy_logger==<ver>to install inSPy-Logger 2.0+colorlog(^4.2.1)setuptools-autover= (^1.0.2)luddite= (^1.0.1)packaging= (^20.4)Installation via Pip on Python 3.6.3+ (recommended method):$> python3 -m pip install inspy_logger==<version>Test out InspyLogger:importinspy_logger# Set up a log device object. The first parameter is the root loggers name, and the second is the debug levellog_device=inspy_logger.InspyLogger('LogName','debug')# Start a running log from that devicelog=log_device.start()# Output our own logger lines:log.debug('This is a debug log entry')log.info('This is an info log entry')log.warning('This is a warning log entry!')log.error('This is an error log entry!')log.exception('This is an exception log entry!')If you run the code above you'll get output similar to this:v2.0+ repository for inSPy-Logger
Package: inspyred
inspyred is a free, open source framework for creating biologically-inspired
computational intelligence algorithms in Python, including evolutionary
computation, swarm intelligence, and immunocomputing. Additionally, inspyred
provides easy-to-use canonical versions of many bio-inspired algorithms for
users who do not need much customization.ExampleThe following example illustrates the basics of the inspyred package. In this
example, candidate solutions are 10-bit binary strings whose decimal values
should be maximized:import random
import time
import inspyred

def generate_binary(random, args):
    bits = args.get('num_bits', 8)
    return [random.choice([0, 1]) for i in range(bits)]

@inspyred.ec.evaluators.evaluator
def evaluate_binary(candidate, args):
    return int("".join([str(c) for c in candidate]), 2)

rand = random.Random()
rand.seed(int(time.time()))
ga = inspyred.ec.GA(rand)
ga.observer = inspyred.ec.observers.stats_observer
ga.terminator = inspyred.ec.terminators.evaluation_termination
final_pop = ga.evolve(evaluator=evaluate_binary,
                      generator=generate_binary,
                      max_evaluations=1000,
                      num_elites=1,
                      pop_size=100,
                      num_bits=10)
final_pop.sort(reverse=True)
for ind in final_pop:
    print(str(ind))RequirementsRequires Python 3+.Numpy and Pylab are required for several functions inec.observers.Pylab and Matplotlib are required for several functions inec.analysis.Parallel Python (pp) is required ifec.evaluators.parallel_evaluation_ppis used.LicenseThis package is distributed under the MIT License. This license can be found
online athttp://www.opensource.org/licenses/MIT.ResourcesHomepage:http://aarongarrett.github.io/inspyredEmail:garrett@inspiredintelligence.ioDocumentation:https://inspyred.readthedocs.io.CitingGarrett, A. (2012). inspyred (Version 1.0.1) [software]. Inspired Intelligence. Retrieved fromhttps://github.com/aarongarrett/inspyred[accessed CURRENT DATE].FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: insta-api
insta_apiinsta_apiis a pythonic (unofficial) instagram client. It has been backwards
engineered from the ground up. Currently it supports essential behavior such as liking,
following other users, as well as posting photos.InstallationTo install simply do:$ pip install insta_apiExample usageGetting startedThe first thing you should do is import theinsta_apimodulefrom insta_api import insta_apiLogin to your instagram accountinsta = InstaAPI()
insta.login(USERNAME, PASSWORD)UsageLiking postsYou can like posts by either using shortcode or media_id. The shortcode can be obtained by
looking at the URL of a post in the addressbar.It looks something like thisBov3uZUFJRhinsta.like(shortcode)If you are a more advanced user, you may want to use the media_id instead, this
will also work.Following usersTo follow an user you need one of two things: either their username or their unique user idFor example, to like by username:insta.follow(my_username)And more...See the documentation for more info.TestingYou must set up your own testing server, like Jenkins, for example. This is because
instagram will block any of the online CI integration tools due to the nature of
their dynamic IPsYou should also configure your testing instagram credentials by adding theINSTA_API_USERandINSTA_API_PASSWORDenvironmental variables to your isolated testing system.Author(s)orlandodiazCopyrightCopyright (c) 2013 Orlando DiazFor more info see LICENSELegalThis program is in no way affiliated with, authorized, maintained,
sponsored or endorsed by Instagram or any of its affiliates or subsidiaries.
This is an independent and unofficial API. Use at your own risk
Package: instabase
Instabase Apps SDKUse this SDK to access apps on apps.instabase.com.SetupYou will need to set the following environment variables:IB_API_TOKEN: Your API token from Instabase Apps website.IB_ROOT_URL: Root URL of Instabase App website.Getting StartedExample below demonstrates usage of the SDK to extract contents of an input file using Instabase's Bank Statements application (version 3.0.0):Input file represented by remote URLfrom instabase.apps import Client

app_name, app_version = 'US Bank Statements', '3.0.0'
file_url = '<INPUT FILE URL HERE>'

client = Client()
resp = client.extract_from_input_url(file_url, app_name, app_version)
print(resp)Input file represented by file pathfrom instabase.apps import Client

app_name, app_version = 'US Bank Statements', '3.0.0'
with open(<FILE_PATH_HERE>,'rb') as f:
	resp = client.extract_from_input_bytes(f.read(), <FILE_NAME>, app_name, app_version)
	print(resp)
Package: instabasic
InstaBasicInstaBasic is an API wrapper forInstagram's Basic Display API. I was in the process of writing python code using the Basic Display API, and I created this package for others to use. My goal for this is to support every official Basic Display APIendpoint.This package does not support theInstagram Graph APIInstallationpip install instabasicOverviewThe Instagram Basic Display API is an HTTP-based API for apps to get an Instagram user’s profile, images, videos, and albums. To use InstaBasic you will need to do the following:Create a Facebook Developer AccountCreate a public websiteProvide Instagram users with an Auth link for access to their data.Instagram's documentation includes a thoroughoverviewof the API's capabilities. If you are unfamiliar with the Basic Display API, I recommend first reviewing theirGet Started Guidebefore looking at InstaBasic's documentation.Usagefrom instabasic.api import API

app_id = 'YOUR APP ID'
app_secret = 'YOUR APP SECRET'
redirect_url = 'YOUR REDIRECT URL'

insta = API(appID, appSecret, redirectUrl)

# Authorization URL for your users to sign in
auth_url = insta.get_auth_url()
print(auth_url)

# Get the short lived access token (valid for 1 hour)
short_token = insta.get_short_token(auth_code)

# Exchange this token for a long lived token (valid for 60 days)
long_token = insta.get_long_token(auth_code)

# Refresh the long lived token
long_token = insta.refresh_long_token(long_token)

# Get information about the user
user = insta.get_user(long_token)

# Get information about the user's media
user_media = insta.get_user_media(long_token)DocumentationInstaBasicInstagram Basic Display APISupportContributing Documentation| Please feel free to contribute and suggest additional features.DisclamerInstaBasic is in no way affliated, endorsed, or certified by Instagram. This is an independent and unofficial package. Strictly not for spam. Use at your own risk.