Saravanan666/pypi-org huggingface dataset:
Package: apidev-coop-bar
apidev-coop_bar, configurable toolbarWhat is coop_bar good for?Quick startWhat is coop_bar good for?coop_bar is a django app which provides an menu bar with external auto-registred menu items.Quick startIn settings.py, add ‘coop_bar’ (with an underscore) to the INSTALLED_APPS
In urls.py add (r’^coop_bar/’, include(‘coop_bar.urls’)) to your urlpatternsFor each app needing to add links to coop_bar, create a coop_bar_cfg.py file
In this file, add a load_commands function as followsfrom django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _

def django_admin_command(request, context):
    if request and request.user.is_staff: #request might be None
        return u'<a href="{0}">{1}</a>'.format(reverse("admin:index"), _('Admin'))

def load_commands(coop_bar):
    coop_bar.register_command(django_admin_command)In load_commands, you can register as much callback functions as you want. A callback (django_admin_command in the previous example)
is just a function with request and context as args. It returns some html code to display in the bar or None.In your base.html, add the following template tags:{% load coop_bar_tags %}
<html>
<head>
    ...
    {% coop_bar_headers %}
</head>
<body>
    ...
    {% coop_bar %}
</body>Licenseapidev-coop_bar in a fork of credis/coop-bar (seehttps://github.com/credis/coop-bar).Fugue icon setby Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 License.apidev-coop_bar itself uses the BSD license: see license.txtcredis/coop-bar development was funded byCREDIS, FSE (European Social Fund) and Conseil Regional d’Auvergne.
Package: apidev-coop-colorbox
coop-colorbox, make easy to use jquery.colorbox in a django appInstallpip:pip install apidev_coop-colorboxSettingsIn settings.py:INSTALLED_APPS = (
    '...',
    'colorbox',
)Viewsviews:from django.utils.decorators import method_decorator
from django.http import HttpResponseRedirect, Http404

from colorbox.decorators import popup_redirect
class MyView(FormView):
    """edit the profile of the current user"""
    template_name = "form_popup_template.html"

    @method_decorator(popup_redirect)
    def dispatch(self, request, *args, **kwargs):
        """Manage close of the colorbox popup"""
        self.user = request.user
        return super(EditProfileView, self).dispatch(request, *args, **kwargs)

    def get_form_class(self):
        """returns the form class to use"""
        return MyForm

    def form_valid(self, form):
        form.save()
        return HttpResponseRedirect(reverse(’next_step'))form_popup_templatetemplate:{% extends "colorbox/popup_form_base.html" %}
{% load i18n %}
{% block title %}{% trans "Edit" %}{% endblock %}
{% block form_url %}{% url 'my_view' %}{% endblock %}You can also overrides or extends{% block form_intro %}{% block form_fields %}`{% block popup_buttons %}or{% block extra_head %}main templatetemplate:{% load static i18n %}
<script type="text/javascript" charset="utf-8" src="{% static 'js/jquery.colorbox-min.js' %}"></script>
<script type="text/javascript" charset="utf-8" src="{% static 'js/jquery.form.js' %}"></script>
<script type="text/javascript" src="{% static 'js/colorbox.coop.js' %}"></script>
<link rel="stylesheet" href="{% static 'css/colorbox.css' %}" type="text/css" />
<script>
  $(function () {
    // activate popups
    $("a.colorbox-form").colorboxify();
  });
</script>
<a class="colorbox-form" href="{% url 'my_view' %}">{% trans "Edit" %}</a>In teststests:from colorbox.utils import assert_popup_redirects
assert_popup_redirects(response, reverse('my_view'))Licensecoop-colorbox uses the BSD license see license.txt
Package: apidev-djaloha
DjalohaWhat is djaloha good for?Quick startOptionsWhat is djaloha good for?Djaloha (django + aloha) is a backend for using theAloha Editorinto a Django site.
It enables inline editing for your HTML content.
It includes a django Form and a Widget helper.
Djaloha is using aloha.0.23.26Quick startIn settings.py, add ‘djaloha’ to the INSTALLED_APPS
In urls.py add(r'^djaloha/',include('djaloha.urls'))to your urlpatternsThen create a form. For example something likeimport floppyforms
from models import Note
from djaloha.widgets import AlohaInput

class NoteForm(floppyforms.ModelForm):
    class Meta:
        model = Note
        fields = ('text',)
        widgets = {
            'text': AlohaInput(),
        }Let’s assume that you’ve aformvariable pointing on an instance of a NoteForm.
In the template file, call the form and don’t forget to put{{form.media}}in the headers.OptionsDjaloha has a “provider” that allows you to add local links to your models (articles, contacts, whatever) easily, through an autocomplete field that will search for objects based on rules you defined for each model :search this kind of models using get_absolute_url()search this kind of models using another methodsearch this kind of models using a specified model fieldYou can set theDJALOHA_LINK_MODELSsetting in your settings.py to tell which django models will be available in the auto-complete field of the “add link” widget like thisDJALOHA_LINK_MODELS = ('coop_local.Article','calendar.Event')djaloha requires jquery and is provided by default with jquery.1.7.2. You can change the jquery version if neededDJALOHA_JQUERY = 'js/jquery.1.7.2.js'Aloha has a nice plugin architecture. djaloha includes by default the main Aloha plugins. You may want to have a different set of plugins.
Please refer to the Aloha docs for more information on pluginsDJALOHA_PLUGINS = (
    "common/format",
    "common/highlighteditables",
    "common/list",
    "common/link",
    "common/undo",
    "common/paste",
    "common/commands",
    "common/image",
    "common/align",
    "extra/attributes",
    "common/characterpicker",
    "common/abbr",
    "common/horizontalruler",
    "common/table",
    "extra/browser",
)Please note that theDJALOHA_PLUGINSsetting is a global setting. If you need to change the set of plugins for a specific form field, you
can pass a similar tuple in thealoha_pluginsattribute of yourAlohaInputwidget.
Theextra_aloha_pluginsattribute will add additional plugins to the default set.DJALOHA_INIT_URLsetting make possible to overloaf the aloha init file of djaloha.aloha_init_urlattribute ofAlohaInputcan also be used to overload it for a specific form field.Licenseapidev-djaloha is a fork from credis/djaloha (seehttp://github.com/credis/djaloha)Djaloha uses the BSD license. see license.txtDjaloha development was funded byCREDIS, FSE (European Social Fund) and Conseil Regional d’Auvergne.
Package: apidev-sanza
sanza-crm===============================================* `Overview`_* `Quick start`_.. _Overview: #overviex.. _Quick start: #quick-start.. _overview:Overview------------------------------------sanza-crm moto is Organize > Target > Communicate. It helps you to work with your contacts in your day-to-day work.. _quick-start:Quick start-----------Python 2.6+, Django 1.4+ requiredLicense=======CeCCIL 2.1. see license.txt
Package: apidevtools
OverviewDocumentationInstallationpip install apidevtoolsPackage dependenciesincludesNonespeedupspip install aiodns ujson cchardet uvloopdepending on modules [optional]pip install pydantic loguru pillow numpy argon2-cffi cryptography aiohttpPer module dependenciessimpleormormpip install pydantic loguruconnectorsmysqlpip install aiomysqlpostgresqlpip install asyncpgsqlitepip install aiosqliteredispip install aioredissecurityhasherpip install argon2-cffiencryptorpip install cryptographymediaimgprocpip install pillow numpytelegraphpip install aiohttplogmanpip install loguru
Package: api-display-purposes
DisplayPurposesDisplayPurposes is a Python library for programmatically interacting with the websitehttps://displaypurposes.comInstallationUse the package managerpipto install displaypurposespipinstallapi-display-purposesUsagefromapidisplaypurposesimportdisplaypurposes# obtain tags similar to #happydisplaypurposes.tag('happy')# obtain 10 tags similar to #happydisplaypurposes.tag('happy',limit=10)# obtain 20 tags similar to #happy emulating firefox GET requestsdisplaypurposes.tag('happy',limit=20,browser='firefox')# obtain tags that share an edge with #happydisplaypurposes.graph('happy')# obtain tags that share an edge with #happy emulating firefox GET requestsdisplaypurposes.graph('happy',browser='firefox')# obtain the 20 most popular tags used within the specified windowdisplaypurposes.map(-118.77636909484865,33.23850805662313,-117.04052925109865,35.10400554120783,zoom=14,limit=20)# obtain the 20 most popular tags used within the specified window emulating chrome GET requestsdisplaypurposes.map(-118.77636909484865,33.23850805662313,-117.04052925109865,35.10400554120783,zoom=14,limit=20,browser='chrome')AcknowledgementOf course this project could not exist without the work of the makers ofhttps://displaypurposes.com. Thank you for the work you put into this useful tool.LicenseGNU
Package: apidoc2markdown
Apidocis an open specification for documenting REST APIs in JSON or YAML.
Imperfect as it is, it’s de facto a standard for many API developers.This extension lets you render your swagger.json file as a Markdown document.
You can customize the output by providing your ownJinja2template.WarningThis extension was created for a particular project and thus is only
guaranteed to work with this particular project! It is very much likely
you’ll have to modifyapidoc.md.j2for your project.Installation$pipinstallapidoc2markdownUsageusage:apidoc2markdown-script.py[-h][-iAPIDOC_LOCATION][-oOUTPUT][-tTEMPLATE]optionalarguments:-h,--helpshowthishelpmessageandexit-iAPIDOC_LOCATION,--inputAPIDOC_LOCATIONpathtothedirectorywithapi_data.jsonandapi_project.json(default:.)-oOUTPUT,--outputOUTPUTpathtotheoutputMarkdownfile(default:swagger.md)-tTEMPLATE,--templateTEMPLATEJinja2templateusedforconversion
Package: apidoc2runner
apidoc2runnerConvert apidoc data to JSON testcases for HttpRunner.apidoc规范apidoc2runner规范usageTo seeapidoc2runnerversion:$pythonmain.py-VTo see available options, run$pythonmain.py-h
usage:main.py[-h][-V][--log-levelLOG_LEVEL][apidoc_testset_file][--output_dir][--output_file_type]ConvertapidoctestcasestoJSONtestcasesforHttpRunner.

positionalarguments:apidoc_testset_fileSpecifyapidoctestsetfile.--output_dirOptional.SpecifyconvertedJSONtestsetfolder.--output_file_typeOptional.Generatefileformat,defaultjson.

optionalarguments:-h,--helpshowthishelpmessageandexit-V,--versionshowversion--log-levelLOG_LEVELSpecifylogginglevel,defaultisINFO.examplesIn most cases, you can runapidoc2runnerlike this:$python3main.pytests/data/test.json--output_dirtests/apidoc2runner--output_file_typeyaml
INFO:root:GenerateJSONtestsetsuccessfully:output.jsonAs you see, the first parameter is apidoc source file path, and the second is converted JSON file path.The output testset file type is detemined by the suffix of your specified file.If you only specify apidoc source file path, the output testset is in JSON format by default and located in the same folder with source file.$python3main.pytests/data/test.json
INFO:root:GenerateJSONtestsetsuccessfully:test/test.output.jsongenerated testsetgenerated JSON testsetoutput.jsonshows like this:[{"test":{"name":"/api/v1/Account/Login","request":{"method":"POST","url":"https://httprunner.top/api/v1/Account/Login","headers":{"Content-Type":"application/json"},"json":{"UserName":"test001","Pwd":"123","VerCode":""}},"validate":[]}}]参考来源【HttpRunner】
Package: apidoc-to-openapi
Apidoc to Openapi ConverterApidocsyntax is very easy and lightweight, whereasOpenapi aka Swaggersyntax is very verbose and not noob friendly. The goal of this project is to make documenting api endpoints so easy that developers won't mind spending the time to do it, instead of just ignoring documentation.Apidoc conversion coverageConvertable Annotations:@api
@apiName
@apiGroup
@apiParam
@apiSuccessFeel free to PR in any other annotations you need.Installingpip install apidoc-to-openapiusage: apidoc_to_openapi [-h] -i path [-o path] [--yaml]

optional arguments:
  -h, --help  show this help message and exit
  -o path     File output (default: stdout)
  --yaml      Convert output to yaml format

Required:
  -i path     File or directory containing apidoc annotationsExampleapidoc-to-openapi -i ./my/path/ -o ./my/path/swagger.yaml --yamlRunning the testsUsed pytest for testing. Test coverage isn't near where I want it to be.Coding StyleUsing black formatter and pylintAuthorsGraham Thomas-Initial workLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsI have no friends
Package: apidou
APIdou - Python communication with APIdou========================================================================This module based on PyGATT (by Chris Peplin) makes easier to communicateover BLE with APIdou, the connected plush (www.apidou.fr).Example code :```pythonfrom apidou import APIdou# create an APIdou object using gatttool and a given MAC addressdevice = APIdou("linux", "AA:BB:CC:DD:EE:FF")device.connect()device.setVibration(True)time.sleep(0.1)device.setVibration(False)device.disconnect()```More examples on the [other repository](https://github.com/iadjedj/APIdouExamples/tree/master/python)
Package: apidownload
API DownloadDownload the data from an API endpoint to a fileInstallpip install apidownloadRunapidownloadorpython -m apidownloadThe first timeapidownloadis run in a directory, anapidownload.jsonfile is created.This contains the endpoint URLs and the file paths to store the data in.Optionally, theindentproperty may be provided to override the default indentation level of 2 spaces.If theapidownload.jsonfile exists in this directory, the endpoints are downloaded to the specified files.The path to the file/folder can optionally be given as a positional parameter:Custom folder:apidownload myfolderCustom file:apidownload myfolder/myfile.txtBoth absolute and relative paths are allowed.
Package: api-endpoint-manager
api-endpointIntroductionGetting StartedContributorsLicenseIntroductionThis library contains classes to simplify the process of Flask API end points definitionGetting StartedIn order to install, open the command prompt and type ✌️:pip install api_endpoint_managerContributorsThis project exists thanks to all the people who contribute. [Contribute].""LicenseThis library is licensed under the MIT License - see theLICENSE.mdfile for details.
Package: api-entreprise
Client API entrepriseClient pourhttps://api.gouv.fr/les-api/api-entreprise.Ajout de la dépendance dans un requirements.txtPar exemple:api-entreprise>=3Uilisation de la cliUne CLI est fournie avec la bibliothèqueInstallationpython-mpipxinstallapi-entrepriseUtilisationapi-entreprise--help
Package: apifactory
ApifactoryApifacotry allows you to create APIs on existing (currently only SQL) databases nearly automatically. It handles all sorts of setup automatically for you, including creating pydantic data schemas setting up login and JWT.Apifactory uses SQLAlchemy to automatically detect tables in the given database. If these tables have single column primary keys they are added to your API, multicolumn primary keys will be added in the future.Apifactory uses fastapi to construct its APIs. This means the schemas you accept or return in your API are defined by pydantic, which also handles validation of input types and return types. These schemas are automatically generated from the SQLAlchemy table models that are generated by apifactory.Apifactory automatically prevents unauthorized access. Users of your API need to log in and get a JWT to authenticate at the API endpoints Authorization is based on a user defined existing Users table.A short example how to set up an APIApifactory will add all tables with a single column primary key. All columns of these table will be added to the schema of your API. However, this might not be preferred for all methods. For example, you might not want your post requests to also dictate the primary key the entry. This could for example be handled by the database itself. Currently, you can add some config to dictate which columns to exclude in post and put requests. In addition, you need to specify the database connection string. And specify the name of the table containing hashed passwords for user authentication.fromapifactory.app_factoryimportApiFactorydburl="<database url>"key="<key for jwt encryption>"configs={"Persons":{"excluded_columns_put":["Personid","createdDate"],"excluded_columns_post":["Personid","createdDate"],},"test_table":{"excluded_columns_put":["primarykey"]},}usermodel_name='Users'app=ApiFactory(dburl,usermodel_name,key,configs).app_factory()You can serve the fileuvicorn <name of your file containg the app>:appSince apifactory uses fastapi you automatically can visit an openapi page containing the details of your API.Documentation is availablehere.Apifactory is currently heavily under development and not feature complete/stable. 
Features to be included in the future:More configuration optionsMulticolumn primary key supportAdd scopes to JWTMake apifactory completely asynchronousAdd support for custom modelsCustom endpointlogging
Package: apifiny
Apifiny OPEN API Connector PythonThis is a library that works as a connector toAPIFINY OPEN APISupported APIs:REST trading/market APIWebSocket trading/market APIOPEN API Documentationhttps://doc.apifiny.com/connect/#introductionInstallpip3installapifinyUse windows, installing quickfix fails,Please use the link to download the file and install locally.https://www.lfd.uci.edu/~gohlke/pythonlibs/#quickfixRESTful APIsUsage examples:Get all supported exchangesfromapifiny.rest_apiimportAPIasClientclient=Client()print(client.list_venue())Get Market Datafromapifiny.rest_marketimportMarketDataasMD_Clientmd_client=MD_Client()# Get BINANCE orderbook of BTCUSDTprint(md_client.market_order_book("BINANCE","BTCUSDT"))# Get BINANCE klines of BTCUSDT at 1m intervalprint(md_client.market_kline("BINANCE","BTC","USDT","1m"))Create Orderfromapifiny.rest_apiimportAPIasClientfromapifiny.libimportvenue_listclient=Client(venue_list.BINANCE)# Get server timestampprint(client.server_time())# api_key_id/secret_key are required for trade endpointsclient=Client(venue="BINANCE",key='<api_key_id>',secret='<secret_key>')# Post a new orderparams={"accountId":'<account_id>',"venue":"BINANCE","orderId":"","orderInfo":{"limitPrice":"30000","orderSide":"BUY","orderType":"LIMIT","quantity":"0.0001","symbol":"BTCUSDT","timeInForce":1,}}response=client.new_order(**params)print(response)Access sandbox environmentfromapifiny.rest_apiimportAPIasClientclient=Client(test=True)print(client.list_venue())WebSocket APIsUsage examples:Subscribe Market Datafromapifiny.ac_websocketimportACSpotApiasClient# Get BINANCE orderbook of BTCUSDTmsg={"channel":"orderbook","symbol":'BTCUSDT',"venues":["BINANCE"],"action":"sub"}# Get BINANCE klines of BTCUSDT at 1m interval# msg = {"channel": "kline_1m", "symbol": "BTCUSDT", "venues": ["BINANCE"], "action": "sub"}# client = Client(test=True) # test=True,Access sandbox environmentclient=Client()client.connect(md=True)client.send_msg(msg)Create Orderfromapifiny.ac_websocketimportACSpotApiasClient# Post a new orderparams={"accountId":'<account_id>',"venue":"BINANCE","orderId":"","orderInfo":{"limitPrice":"30000","orderSide":"BUY","orderType":"LIMIT","quantity":"0.0001","symbol":"BTCUSDT","timeInForce":1,}}# api_key_id/secret_key are required for trade endpointsclient=Client(venue="BINANCE")client.connect()client.login(api_key_id,secret_key)client.new_order(**params)# client.close()Please findexamplesfolder to check for more endpoints.ContributingContributions are welcome.If you've found a bug within this project, please open an issue to discuss what you would like to change.If it's an issue with the API, please report any new issues atapifiny-connector-python issues
Package: apifiny-futures
Apifiny Futures OPEN API Connector PythonThis is a library that works as a connector toAPIFINY FUTURES OPEN APISupported APIs:REST trading/market APIWebSocket market APIOPEN API Documentationhttps://doc.apifiny.com/futures/#introductionInstallpip3install-Uapifiny-futuresRESTful APIsUsage examples:Get all supported exchangesfromapifiny_futures.rest_apiimportAPIasClientclient=Client(venue="BINANCE")print(client.list_venue())Get Market Datafromapifiny_futures.rest_marketimportMarketDataasClientclient=Client()# Get BINANCE orderbook of BTCUSDTprint(client.get_order_book("BINANCE","BTCUSDT"))Create Orderfromapifiny_futures.rest_apiimportAPIasClient# api key/secret are required for trade endpointsclient=Client(venue="BINANCE",key='<api_key>',secret='<api_secret>')# Post a new orderparams={"accountId":'<account_id>',"venue":'<venue>',"orderInfo":{"symbol":"BTCUSDT","orderType":"TRAILING","timeInForce":"GTC","orderSide":"SELL","price":"100","qty":"0.1","stopPrice":"0","workingType":"CONTRACT_PRICE","positionSide":"BOTH","reduceOnly":"false","closePosition":"false","activationPrice":"9020","callbackRate":"0.1","priceProtect":"false"}}resp=client.new_order(**params)print(resp)WebSocket APIsUsage examples:Subscribe Market Datafromapifiny_futures.fut_websocketimportFutApiasClient# Get BINANCE orderbook of BTCUSDTmsg={"channel":"orderbook","symbol":'BTCUSDT',"venues":["BINANCE"],"action":"sub"}# Get BINANCE klines of BTCUSDT at 1m interval# msg = {"channel": "kline_1m", "symbol": "BTCUSDT", "venues": ["BINANCE"], "action": "sub"}client=Client()client.connect(md=True)client.send_msg(msg)pushing datafromapifiny_futures.fut_websocketimportFutApiasClient# api key/secret are required for subscribe order and asset updateclient=Client(venue="BINANCE")client.connect()client.login('<api_key_id>','<secret_key>')Please findexamplesfolder to check for more endpoints.ContributingContributions are welcome.If you've found a bug within this project, please open an issue to discuss what you would like to change.If it's an issue with the API, please report any new issues atapifiny-futures-connector-python issues
Package: apifish
api-FISHInstallationDependenciesapiFISH requires Python XXX or newer. Additionally, it has the following dependencies:numpy (>= 1.16.0)scipy (>= 1.4.1)scikit-learn (>= 0.24.0)scikit-image (>= 0.14.2)matplotlib (>= 3.0.2)pandas (>= 0.24.0)mrc (>= 0.1.5)For segmentation purpose, two additional dependencies can be requested:tensorflow (>= 2.3.0)tensorflow-addons (>= 0.12.1)Virtual environmentUsageSupportRoadmap (suggestion)DevelopmentSource codeContributingTestingCitation
Package: apiflash-client
The ApiFlash Client is a Python module for interacting withapiflash. It requires Python 3.7+.InstallationIn a Python virtual environment:$ pip install apiflash-clientExample usageSetup a client:from apiflash import ApiFlashClient

access_key = '<your-access-key>'

client = ApiFlashClient(access_key)Check the quota of your account:print(client.quota())Capture a screenshot of a URL:resp = client.capture(
    'https://google.com',
)
print(resp['url'])Capture a screenshot of a URL with some parameters:from apiflash import ImageFormat

resp = client.capture(
    'https://google.com',
    width=400,
    height=600,
    format=ImageFormat.WEBP,
)
print(resp['url'])Capture a screenshot of a URL, but return the image data, rather than a screentshot URL:from apiflash import ResponseType

data = client.capture(
    'https://google.com',
    response_type=ResponseType.IMAGE,
)

with open('my-file.png', 'wb') as filehandle:
    filehandle.write(data)All available capture options can be foundhere.Command line usageOnce installed in your virtual environment, you can use the command line interface. You will need to pass--access-key<your-access-key>or setAPIFLASH_ACCESS_KEYin your environment for the command line to authenticate with apiflash.com:$ apiflash quota
{'limit': 100, 'remaining': 91, 'reset': 1703265314}

$ apiflash capture https://google.com
https://api.apiflash.com/v1/urltoimage/cache/8jzv236knw.png?access_key=<your-access-key>

$ apiflash capture https://google.com -o width 400 -o height 600
https://api.apiflash.com/v1/urltoimage/cache/5asdf65asd.png?access_key=<your-access-key>If you are usingngrokto expose a local development environment, you will need to pass-oheadersngrok-skip-browser-warning=yesto the command line utility. The same can be passed as a keyword argument to thecapture()method, if retrieving the screenshot programmatically.