Saravanan666/pypi-org huggingface dataset:
Package: inflect_dj
NAMEinflect_dj.py - Generate plurals for use with Django.VERSIONThis document describes version 0.2.0 of inflect_dj.pyINSTALLATIONpip install inflect_djoreasy_install inflect_djDESCRIPTION@verbose_name_plural
—Decorator for the Djangomodels.Modelclasses.Decorating a child class ofmodel.Modelwith@verbose_name_pluralwill ensure that
the plural form of the model name will be rendered correctly.It uses the moduleinflect.pyto determine the correct pluralisation.USAGEUsing@verbose_name_pluralwhen specifying averbose_namefor the model:from django.db import models
from inflect_dj import verbose_name_plural

@verbose_name_plural
class mycategory(models.Model):
    [definition of the model]
    class Meta:
        verbose_name = 'category'
        [rest of the Meta class definition]The plural will be displayed correctly ascategories.Using@verbose_name_pluralwithout specifyingverbose_name:from django.db import models
from inflect_dj import verbose_name_plural

@verbose_name_plural
class category(models.Model):
    [definition of the model]
    class Meta:
        [class Meta definition]The plural will be displayed correctly ascategories, as this
is the plural of the class name.Earlier versions of PythonIf you are using a Python version earlier than 2.6 you cannot use
class decorators and must explicitly redefine the class with a call toverbose_name_plural():from django.db import models
from inflect_dj import verbose_name_plural

class mycategory(models.Model):
    [definition of the model]
    class Meta:
        verbose_name = 'category'
        [rest of the Meta class definition]
mycategory = verbose_name_plural(mycategory)AUTHORPaul Dyson (pwdyson@yahoo.com)COPYRIGHTCopyright (C) 2010 Paul DysonThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.This module can be downloaded athttp://pypi.python.org/pypi/inflect_djThis module can be installed viaeasy_install inflect_djRepository available athttp://github.com/pwdyson/inflect_dj.py
Package: inflecteur
inflecteurinflecteur is a python inflector for french language based on theDELA dictionaryInstallation :$pipinstall-Utransformers$pipinstall-UinflecteurHow to inflect ?In[1]:frominflecteurimportinflecteurIn[2]:inflecteur=inflecteur()In[3]:inflecteur.load_dict()Control tense :In[4]:inflecteur.inflect_sentence("Elle boit un café et mange un croissant.",tense='Futur')'Elle boira un café et mangera un croissant .'In[5]:inflecteur.inflect_sentence("Elle boit un café et mange un croissant.",tense='Passé simple')'Elle but un café et mangea un croissant .'Control gender :In[6]:inflecteur.inflect_sentence("Elle boit un café et mange un croissant.",gender='m')'Il boit un café et mange un croissant .'Control number :In[7]:inflecteur.inflect_sentence("Elle boit un café et mange un croissant.",number='p')'Elles boivent des cafés et mangent des croissants .'Get word forms :In[8]:inflecteur.get_word_form('pris')lemmagramformegendernumbertenseperson0prendreVerbeKmsMsingularPassé composé1prendreVerbeKmpMpluralPassé composé2prendreVerbeJ1ssingularPassé simpleJe3prendreVerbeJ2ssingularPassé simpleTu4prendreVerbeKmsMsingularPassé composé5prendreVerbeJ1ssingularPassé simpleJe6prendreVerbeJ2ssingularPassé simpleTu7prisAdjectifmsMsingular8prisAdjectifmpMplural
Package: inflection-jinja
inflection-jinjaJinja extension wrapping infection package.Free software: BSD licenseDocumentation:https://inflection-jinja.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-12-20)First release on PyPI.
Package: inflex
InflexNatural Language Inflection in English(Formerly called Inflexion)This README is a stub, and is yet to be written.InstallInflex has no requirements, and has support for Python version 3.6 onwards.Install it via:pip install inflexSample UsagefrominfleximportNoun,Verb,Adjective# Converting NounsNoun("book").plural()# Produces "books"Noun("book").singular()# Produces "book"# Converting VerbsVerb("fly").plural()# Produces "fly"Verb("fly").singular()# Produces "flies"Verb("fly").past()# Produces "flew"Verb("fly").pres_part()# Produces "flying"Verb("fly").past_part()# Produces "flown"# Converting AdjectivesAdjective("my").singular()# Produces "my"Adjective("our").plural()# Produces "our"Adjective("small").comparative()# Produces "smallest"Adjective("small").superlative()# Produces "smaller"
Package: inflow
InflowA simpleInfluxDBPython client library. It is an alternative for theofficial InfluxDB Python client library.Inflow officially supports Python 2.7 and up, but the latest Python 3 version
is recommended.InfluxDB is supported from version 1.0 and up.Documentation is hosted onRead the Docs.Source code can be found onGitHub.WarningThis project is still very much in development, stuff might work,
or not.  API’s might change, or even be removed. So be careful.
This message will be removed once a stable version is released.ExampleYou can write measurements in a few different ways, but writing a single
“temperature” measurement is as simple as:frominflowimportClientclient=Client('http://username:pass@localhost:8086/databasename')client.write('temperature',value=21.3)For more examples and docs on how to use the client, refer to the Measurements
and Querying chapters in the documentation.Installing$pipinstallinflowLicenseInflow is licensed underMozilla Public License. © 2016Advanced Climate
Systems.
Package: influence-api
Influence APIA python API forInfluence.DevelopmentYoumusthave an API key from Influence to develop or use the API. ContactDarkosNightmare#8555on Discord, and request a production API key.The preferred development environment is GitPod.You will need the following environment variables defined to run unit tests:INFLUENCE_CLIENT_IDINFLUENCE_CLIENT_SECRETOtherwise, tests relying on the live API will be skipped.Usagefrominfluence_apiimportInfluenceClientclient=InfluenceClient(client_id="",client_secret="")# Retrieve an asteroidasteroid=client.get_asteroid(1)# Retrieve a crew membercrewmember=client.get_crewmate(1)# Use string options for key values (if applicable)crewmember2=client.get_crewmate(1,names=True)
Package: influence-model
influence-modelinfluence_modelis a Python implementation of the influence model, a generative model that describes the interactions between networked Markov chains.Why influence_model?It provides an efficient and well-documented implementation of Asavathiratham's influence model, and supports defining new influence models as well as generating observations through applying the model's evolution equations.Installinfluence-modelby:pip install influence-modelIf you find this library helpful to your work, please cite the following paper:@article{Erhardt_Hidden_Messages_Mapping_2023,
author = {Erhardt, Keeley and Pentland, Alex},
doi = {10.0000/00000},
journal = {Computational and Mathematical Organization Theory},
month = sep,
number = {3},
pages = {1--10},
title = {{Hidden Messages: Mapping Nations’ Media Campaigns}},
volume = {29},
year = {2023}
}
Package: influential
Contains functions for the classification and ranking of top candidate features, reconstruction of networks from
adjacency matrices and data frames, analysis of the topology of the network
and calculation of centrality measures, and identification of the most
influential nodes. Also, a function is provided for running SIRIR model, which
is the combination of leave-one-out cross validation technique and the conventional SIR model,
on a network to unsupervisedly rank the true influence of vertices.
Additionally, some functions have been provided for the assessment of dependence and
correlation of two network centrality measures as well as the conditional probability of
deviation from their corresponding means in opposite direction.
Fred Viole and David Nawrocki (2013, ISBN:1490523995).
Csardi G, Nepusz T (2006). 'The igraph software package for complex network research.' InterJournal, Complex Systems, 1695.
Adopted algorithms and sources are referenced in function document.
Package: influenzanet.surveys
Influenzanet Survey Managementinfluenzanet.surveys is a python library to work with influenzanet surveys, mainly validation and transformationThe purpose of this library is to work with existing surveys in json, it's not designed to create new survey json from scratch (for this use the typescript libraries).Installationpipinstallinfluenzanet.surveys# To use validationpipinstallinfluenzanet.surveys[validator]FeaturesParse json Survey definition into python objectParsestandards survey definition, standards define the common questions/responses encoding for InfluenzanetExport survey in several format : html document, readable yaml (see formats)Check survey internal consistency (reference for keys) and compliance to a standard definitionFormathtml : view of a survey definition in a static html document (this is survey definition for humans)readable : a simplified view of a survey to see survey structure. Expression are transformed into function call-like text to be more readable.Each format accepts a "context" for the transformation, allowing, for example, to select the languages to be used in the output.An helper is provided to build html for all json in a directory :frominfluenzanet.surveys.htmlimportbuild_html_from_dir## Accept glob patterns and transform all surveys json into html (if a json is not a survey it will be ignored)## Creates an html file in the same directory for each json, replacing existing html if already existsbuild_html_from_dir("output/**/surveys",languages=["en","fr"])Validation and Survey checkTBD
Package: influxalchemy
InfluxAlchemyQuery InfluxDB using SQLAlchemy-style syntaxInstallationpipinstallinfluxalchemyUsageimportinfluxdbimportinfluxalchemyDefine InfluxAlchemy MeasurementsclassWidgets(influxalchemy.Measurement):__measurement__='widgets'classWombats(influxalchemy.Measurement):__measurement__='wombats'The class-attribute__measurement__can be omitted and will default to the class name if absent.Open InfluxAlchemy Connectiondb=influxdb.DataFrameClient(database="example")flux=influxalchemy.InfluxAlchemy(db)Query InfluxDBQuery Single Measurement# SELECT * FROM widgets;flux.query(Widgets)Query Ad Hoc Measurement# SELECT * from /.*/;flux.query(influxalchemy.Measurement.new("/.*/"))Select Fields of Measurement# SELECT tag1, field2 FROM widgets;flux.query(Widgets.tag1,Widgets.field2)Query Across Measurements# SELECT * FROM /widgets|wombats/;flux.query(Widgets|Wombats)Filter Tags# SELECT * FROM widgets WHERE tag1 = 'fizz';flux.query(Widgets).filter(Widgets.tag1=="fizz")Filter Tags with 'like'# SELECT * FROM widgets WHERE tag1 =~ /z$/;flux.query(Widgets).filter(Widgets.tag1.like("/z$/"))Chain Filtersclause1=Widgets.tag1=="fizz"clause2=Widgets.tag2=="buzz"# SELECT * FROM widgets WHERE tag1 = 'fizz' AND tag2 = 'buzz';flux.query(Widgets).filter(clause1&clause2)# SELECT * FROM widgets WHERE tag1 = 'fizz' OR tag2 = 'buzz';flux.query(Widgets).filter(clause1|clause2)Group By# SELECT * FROM widgets GROUP BY time(1d);flux.query(Widgets).group_by("time(1d)")# SELECT * FROM widgets GROUP BY tag1;flux.query(Widgets).group_by(Widgets.tag1)Time# SELECT * FROM widgets WHERE (time > now() - 7d);flux.query(Widgets).filter(Widgets.time>"now() - 7d")# SELECT * FROM widgets WHERE time >= '2016-01-01' AND time <= now() - 7d;d=date(2016,1,1)flux.query(Widgets).filter(Widgets.time.between(d,"now() - 7d"))Note that naive datetime object will be assumed in UTC timezone.
Package: influxdb-aio
InfluxDB-Python-AioStatementThis was forked from (https://github.com/influxdata/influxdb-python), and support asyncio.Hereis the original README document. You can find more detail about InfluxDB-Python (client) and also influxdb (database). Here is only some difference and basic usage.InfluxDB-Python is a client for interacting with InfluxDB_.Development of this library is maintained by:Github IDURL@aviau(https://github.com/aviau)@xginn8(https://github.com/xginn8)@sebito91(https://github.com/sebito91)InstallationInstall, upgrade and uninstall influxdb-aio with these commands::$ pip install influxdb-aio
$ pip install --upgrade influxdb-aio
$ pip uninstall influxdb-aioDependenciesThe influxdb-python distribution is supported only on Python 3.6, 3.7, etc.Main dependency is:httpx: A next generation HTTP client for Python. (https://github.com/encode/httpx)ExamplesHere's a basic example (for more see the examples directory)importasynciofrominfluxdb_aioimportInfluxDBClientjson_body=[{"measurement":"cpu_load_short","tags":{"host":"server01","region":"us-west"},"time":"2009-11-10T23:00:00Z","fields":{"value":0.64}}]asyncdefinit_client():client=awaitInfluxDBClient('localhost',8086,'root','root','example')awaitclient.create_database('example')returnclient.write_points(json_body)asyncdefmain():client=awaitinit_client()result=awaitclient.query('select value from cpu_load_short;')print("Result:{0}".format(result))if__name__=='__main__':asyncio.get_event_loop().run_until_complete(main())
Package: influxdb-async
``(一)：安装``从 PYPI 安装pip install influxdb-async从 Github 安装pip isntall git+https://github.com/yinhuanyi/influxdb-async.git``(二)：使用方法``from influxdb_async import InfluxdbMultiFieldsAsync


host = '100.122.0.2'
port = 8086
database = 'db1'
measurement = 'measurement1'
tags = {"host": "server1", "env": "env1"}
fields_list = [{"value": 1},
               {"value": 2},
               {"value": 3}]
username = 'username'
password = 'password'

# 如果influxdb没有用户名和密码
with InfluxdbMultiFieldsAsync(host, port, database, measurement, tags, fields_list) as influxdb:
    influxdb.start()


# 如果influxdb有用户名和密码
with InfluxdbMultiFieldsAsync(host, port, database, measurement, tags, fields_list, username=username, password=password) as influxdb:
    influxdb.start()``(三)：influxdb显示效果``> use db1;
Using database db1
> select * from measurement1;
name: measurement1
time                env  host    value
----                ---  ----    -----
1591946958016786087 env1 server1 1
1591946958229993773 env1 server1 2
1591946958438736358 env1 server1 3
Package: influxdb-data-processor
influxdb-data-processorA data processor for data in influxDB.Developed by Chai Wen Xuan 2021Uses:To fill in missing value cause by random error from data collectorTo produce fixed time sampling range dataProcessing CSV fileimportpandasaspdfrominfluxdbDataProcessor.processorimportprocessCsvDatadf=processCsvData()User will be required to input:TokeninfluxDb urlOrganizationBucket nameCSV file locationSampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')CSV file format:Contains two column ("Measurement", "Field")Processing array dataimportpandasaspdfrominfluxdbDataProcessor.processorimportprocessArrayDatameasurementArr=["Air Conditioner"]fieldArr=["Temperature"]df=processArrayData(measurementArr,fieldArr)User will be required to input:TokeninfluxDb urlOrganizationBucket nameSampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')Ready input by user before calling functionimportpandasaspdfrominfluxdbDataProcessor.processorimportprocessArrayDatadf=processData(token,url,org,bucket,samplerange,length,mea,field)User will be required to input:TokeninfluxDb urlOrganizationBucket nameSampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')MeasurementArrFieldArr
Package: influxdb-flask
InfluxDB-FlaskDocumentation:InfluxDB-Flask DocumentationIntroductionInfluxDB went for a massive change from v1.7 to v2.0. They introduced a
new client libraryinfluxdb-client-pythonto interact with the InfluxDB v2 API. InfluxDB-Flask adds
influxdb-client-python support to Flask.Note: Use this library with InfluxDB 2.x and InfluxDB 1.8+.For
connecting toInfluxDB 1.7or earlier instances, use theFlask-InfluxDBthat usesInfluxDB-Pythonas
client library.The API of theinfluxdb-client-pythonis not the
backwards-compatible with the old one -influxdb-python.InstallationInstall the extension via pip:$ pip install influxdb-flaskSet UpInfluxdb_client can be accessed via InfluxDB class:from flask import Flask
from influxdb_flask import InfluxDB

app = Flask(__name__)
influxdb = InfluxDB(app)Delayed configuration ofInfluxDBis also supported viainit_appmethod:influxdb = InfluxDB()

app = Flask(__name__)
influxdb.init_app()CurrentlyInfluxDB.connectioninstance provides the functionality ofInfluxDBClient.An included example shows how to write and query data from InfluxDB.Configuring InfluxDB-FlaskThe following configuration values can be set for InfluxDB-Flask
extension:INFLUXDB_V2_URL                       InfluxDB server API url. Default is <http://localhost:8086>
INFLUXDB_V2_ORG                       Organization name (used as a default in query and write API). Default is None
INFLUXDB_V2_TOKEN                     Authentication token.
INFLUXDB_V2_TIMEOUT                   HTTP client timeout setting for a request specified in milliseconds. Default is 10s.
INFLUXDB_V2_VERIFY_SSL                Set this to false to skip verifying SSL certificate when calling API from https server. Default is False.
INFLUXDB_V2_SSL_CA_CERT               Set this to customize the certificate file to verify the peer. Default is None.
INFLUXDB_V2_CONNECTION_POOL_MAXSIZE   Number of connections to save that can be reused by urllib3. Default is 10.
INFLUXDB_V2_AUTH_BASIC                Set this to true to enable basic authentication when talking to a InfluxDB 1.8.x that does not use auth-enabled but is protected by 
                                      a reverse proxy with basic authentication. Default is False.
Package: influxdbpusher
Minimal and smart pusher of samples to InfluxDB for asyncio programsUsageCreate aInfluxDbPusherobjectCall it to push samplesInfluxDbPusherwill try to do intelligent aggregation of samples in the
background to minimise the number of HTTP request to the InfluxDb server.Example:importasyncioimportloggingfrominfluxdbpusherimportInfluxDbPusherasyncdeftest():logging.basicConfig(level=logging.DEBUG)influx=InfluxDbPusher("http://influxdb:8086","playground")whileTrue:fordummyinrange(10):awaitasyncio.sleep(0.02)influx("test",dummy,{"foo":"bar"})influx("measurement1",{"fieldname1":'hello "world"',"value":2.0},{"foo":"bar"})awaitasyncio.sleep(5)awaitinflux.close()if__name__=='__main__':asyncio.get_event_loop().run_until_complete(test())InstallationpipinstallinfluxdbpusherRequirementsPython >= 3.5aiohttpCompatibilityLicenceMIT LicenseCopyright (c) 2017, Gambit ResearchAuthorsinfluxdbpusherwas written byGustavo Carneiro.
Package: influxdispatcher
InfluxDispatcherA simple asynchronous/non-asynchronous package for sending requests. I made this because I
was tired of using a bunch of try/except statements in my code when sending requests to my apis.
This package will attempt to send requests twice. It returns the response object and a boolean indicating whether the request
was successful or not. The format for the response is a tuple of the following (response_from_request, boolean)
Package: influxdump
The influxdump utility performs data dumps, producing json files that can then
be loaded back into a database.
The major difference withinfluxd backupcommand is thatinfluxdumpis creating a data snapshot with a lot of
flexibility on how to load it back in the database.UsageDump all data from a database:$ influxdump -u jdoe -W -d database > data_dump.jsonDump data from measurements containing the string ‘node’ in chunk files of
50,000 records:$ influxdump -u jdoe -W -d database -F _dump -c 50000 -m "node"Dump data from measurements starting with the string ‘node’ in chunk files of
10,000 records (default) between 1st January 2019 and 31st March 2019 in French
timezone:$ influxdump -u jdoe -W -d database -F _dump -m "^node.*" --start "2019-01-01T00:00:00+01:00" --end "2019-03-31T23:59:59+01:00"Load data from a dump folder:$ influxdump -u jdoe -W -d database -F _dumpInstall$pipinstallinfluxdumpPackagingCreate packages:$pythonsetup.pysdistbdist_wheelPush package:$twineuploaddist/*$twineupload-rpypidist/*LicenseThis software is licensed under the Apache License 2.0. See the LICENSE file in the top distribution directory for the full license text.
Package: influxgraph-graphite-api
Graphite-web, without the interface. Just the rendering HTTP API.Fork ofgraphite-apispecifically for use with anInfluxDB backend.This is a minimalistic API server that replicates the behavior of
Graphite-web.Implemented API calls:/metrics/find/metrics/expand/renderNo-ops:/dashboard/find/dashboard/load/<name>/events/get_dataChanges from graphite-apiHardcodedaverageconsolidation of all data points removed - consolidation handled by storage back-end.Cairo optional dependency - Json/raw formats by default.Hardcoded legacy whisperindexfile requirement removed. (/srv/index)maxdatapointsrender query parameter removed - handled by storage back-end.Whisper hardcoded default configuration removed.Various fixes from pending graphite-api pull requests and back-ported fixes from graphite-web,asPercentamong others.Performance improvements.Difference from graphite-webStateless. No need for a database.No Pickle rendering.No remote rendering.JSON data in request bodies is supported, additionally to form data and
querystring parameters.Compatibility with python 2 and 3.Easy to install and configure.GoalsSolid codebase. Strict flake8 compatibility, good test coverage.Ease of installation/use/configuration.Compatibility with the original Graphite-web API and 3rd-party dashboards.Non-goalsSupport for Python versions older than2.7.Built-in support for every metric storage system in the world. Whisper is
included by default, other storages are added via 3rd-party backends.DocumentationOn readthedocs.orgor in thedocs/directory.CairoCFFI dependencyCairo is used to render graphs server side when target format is an image. By default, only Json and raw format outputs are enabled. Attempts to render image formats without Cairo will result in an error message that it is not installed.It can be pulled in via extras -pip installinfluxgraph-graphite-api[cairo].HackingToxis used to run the tests for all supported environments. To get started
from a fresh clone of the repository:pipinstalltoxtox