Saravanan666/pypi-org huggingface dataset:
Package: coned
This is a utility package to interact with a ConEdison or Orange and Rockland Utility smart energy meterThe utility returns the latest meter read start time, end time, usage value and unit of measurement.It requires the [coned.com](coned.com) or [oru.com](oru.com) credentials (email, password, MFA type, MFA secret) and the account uuid and meter number.
MFA type can be eitherSECURITY_QUESTIONorTOTP(e.g. Google Authenticator).
For MFA Security Question, to set up your MFA secret (answer), log into coned.com (or oru.com), go to your profile and reset your 2FA method. When setting up 2FA again, there will be option to say you do not have texting on your phone. Select this and you should be able to use a security question instead.
For MFA TOTP, choose Google Authenticator, choose a device type and when presented with the QR code, click on “Can’t scan?”. It should provide you with the MFA secret.
To find the account uuid, log into coned.com (or oru.com) then use the browser developer tools to search for a GET request toopower.comwith the wordutilityAccountsthat looks like:https://cned.opower.com/ei/edge/apis/DataBrowser-v1/cws/utilities/cned/utilityAccounts/ACCOUNT_UUID/reads?aggregateType=bill&includeEnhancedBilling=false&includeMultiRegisterData=false. (note the URL would have the word ‘oru’ for oru).
The meter number can be found on your utility bill.Example usage:import asyncio
from coned import Meter

meter = Meter(
    email="myemail@email.com",
    password="myconedpassword",
    mfa_type=Meter.TOTP,
    mfa_secret="myconedmfasecret",
    account_uuid="cd754d65-5380-11e8-2307-2656615779bf",
    meter_number="703437804",
    site=Meter.CONED)

event_loop = asyncio.get_event_loop()
startTime, endTime, value, unit_of_measurement = event_loop.run_until_complete(meter.last_read())
Package: cone.maps
This package provides maps integration in to cone.app.As maps library,Leaflet JS(v1.7.1) is included.
It utilizesLeaflet JS.For avoiding 1px gap between tiles,Leaflet.TileLayer.NoGap(ab4f107)is included.For geocoding,leaflet-geosearch(3.5.0) is included.For grouping of map markers,Leaflet.markercluster(1.5.3) is included.For defining active map area, e.g. if parts of a map is used as background,Leaflet-active-area(1.2.0) is included.For general CRS projection support,proj4js(2.7.5) andProj4Leaflet(1.0.2)
are includedMap WidgetA map widget tile is included which provides OOTB default map behavior and
can be used as starting point for complex custom maps.fromcone.maps.browser.mapimportMapTilefromcone.tileimporttilefrommypluginimportMyModel@tile(name='map',interface=MyModel)classMyMap(MapTile):"""See ``cone.maps.browser.map`` for available tile options.
    """ResourcesThe followingcone.mapsrelated application configuration options are
available :cone.maps.public: Flag whether browser resources are delivered for
unauthenticated users. Defaults tofalse.cone.maps.nogap: Flag whether to includeLeaflet.TileLayer.NoGapplugin. Defaults tofalse.cone.maps.geosearch: Flag whether to includeleaflet-geosearchplugin. Defaults tofalse.cone.maps.markercluster: Flag whether to includeLeaflet.markerclusterplugin. Defaults tofalse.cone.maps.activearea: Flag whether to includeLeaflet-active-areaplugin. Defaults tofalse.cone.maps.proj4: Flag whether to includeproj4jsandProj4Leafletplugins. Defaults tofalse.ContributorsRobert NiederreiterTODODefault map marker rendering (from DOM elem data directly and from
JSON endpoint)Default map markercluster rendering (from DOM elem data directly and from
JSON endpoint)Geosearch on default map.Activearea config on default map.Changes0.1 (2021-11-21)Initial release.
[rnix]LicenseCopyright (c) 2021, Cone Contributors
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: conesearch-alchemy
Cone Search AlchemyTheconesearch_alchemyPython package enhancesSQLAlchemyto provide fast,
indexed cone searches on astronomical catalogs using a PostgreSQL database. It
does not rely on any database extensions.InstallationYou can installconesearch_alchemythe Python Package Index:$ pip install conesearch-alchemyUsagefromconesearch_alchemy.pointimportPointfromsqlalchemy.ext.declarativeimportdeclarative_baseBase=declarative_base()# Create two tables Catalog1 and Catalog2 that both have spherical coordinates.classCatalog1(Point,Base):__tablename__='catalog1'id=Column(Integer,primary_key=True)classCatalog2(Point,Base):__tablename__='catalog2'id=Column(Integer,primary_key=True)...# Populate Catalog1 and Catalog2 tables with some sample data...session.add(Catalog1(id=0,ra=320.5,dec=-23.5))...session.add(Catalog2(id=0,ra=18.1,dec=18.3))...session.commit()# Cross-match the two tables.separation=1# separation in degreesquery=session.query(Catalog1.id,Catalog2.id).join(Catalog2,Catalog1.within(point,separation)).order_by(Catalog1.id,Catalog2.id)forrowinquery:...# do something with the query results# Do a cone search around literal ra, dec values.separation=1# separation in degreespoint=Point(ra=212.5,dec=-33.2)query=session.query(Catalog1.id).filter(Catalog1.within(point,separation)).order_by(Catalog1.id)forrowinquery:...# do something with the query results
Package: conexao
ConexaoA connection helper. Current features:Management of multiple remote MongoDB connection profiles.Faster permanent remote Docker connections.SSH port forward proxies.Django (ORM)Add a JSON file to~/.config/conexao/config.json.Example:{"profiles":{"myapp":{"django":{"settings":"myapp.settings"},"ssh":{"host":"my-vps.example.com","forwards":["localhost:5432:localhost:5432"]}}}}The Django project must be installed in the used Python environment. Maybe doingpip install -e ., from the Django project's folder.Then use:fromconexao.djangoimportconfigureconfigure('myapp')# Must come before model import!frommyapp.modelsimportMyModelMyModel.objects.all()or:fromconexao.django.autoimportmyapp# Must come before model import!frommyapp.modelsimportMyModelMyModel.objects.all()MongoDBAdd a JSON file to~/.config/conexao/config.json.Example:{"profiles":{"simpleMongo":{"mongo":{"host":"simple-mongo.example.com"},},"mongoInsideDockerVPS":{"mongo":{"host":"127.0.0.1"},"ssh":{"host":"my-vps.example.com","forwards":["127.0.0.1:27017:123.docker.container.ip.456:27017"]}}}}Then use:fromconexao.mongodbimportcreate_clientclient1=create_client('simpleMongo')client2=create_client('mongoInsideDockerVPS')or:fromconexao.mongodb.autoimportsimpleMongoasclient1,mongoInsideDockerVPSasclient2DockerOpens a permanent SSH forward for faster remote Docker command execution.
Based on:https://forums.docker.com/t/setting-docker-host-to-ssh-results-in-slow-workflow-can-ssh-connection-be-reused/98754conexao docker <host>This feature doesn't use theconfig.jsonfile.LimitationsThis program uses a Python Shelve to store SSH PIDs of all running forwards. Shelve isn't concurrent safe, so avoid calling this program multiple times in parallel. Once the program returns it should be safe to call it again to add more connections.DevelopmentInstall locally using symlinks:pip install -e .Build:python -m buildPublish (need auth):twine upload dist/*
Package: conexions
ConexiónsRan-n/conexionsMódulo de conexións que scrapea e usa os proxies da páxina de "sslproxies.org".
Por defecto non ten verbose, ten un máximo de 20 conexións por ip e 30 segundos de espera por get.Donations 🙇🙇Bitcoinbc1q79vja8jzr27dxaf3ylu7e49ady8zq0jsm5qfk6Monero88Rezd6ZQzaCb1s7K1tRCiCaDzuHrfYsn4q348jJuePpLs84JNsWEghMAZZgzpDPrqD4PBxk7hwMkSdNQ4CLqFHyPVLdX1DWowneroWW2RheTNrq8goAi42Dz5AKUj1qLSaTSSgiH7sHR2qRqojg238EXP3MM3xuUgswriET7UrpkEoYaCkecBhnU49oxM1dZyYoSmmxFCRFacer os tests do contador de conexións totais.Crear base de datos cos proxys.
Package: cone.zodb
cone.zodbThis package provides ZODB integration incone.appand basic
application nodes for publishing ZODB models.Changes1.0a3 (2022-10-06)Replace deprecated use ofIStoragebyIMappingStorage.
[rnix]Replace deprecated use ofStoragebyMappingStorage.
[rnix]Replace deprecated use ofNodifybyMappingNode.
[rnix]Replace deprecated use ofNodeChildValidatebyMappingConstraints.
[rnix]1.0a2 (2021-10-21)Implementnode.iterfaces.IOrderonZODBEntry.
[rnix]1.0a1 (2020-07-09)Fix case where_v_parentis not set ifZODBEntryNodeis not read viaZODBEntryStoragebut from ZODB root directly.
[rnix]RemoveAsAttrAccess,Nodespaces, andAttributesbehaviors fromZODBEntry.
[rnix]AddZODBEntryStorage.attrs. Returns attributes of relatedZODBEntryNode.
[rnix]AddZODBEntryNode.__getitem__. SetsZODBEntryNode.entryas parent
on children to keep traversal and acquisition paths sane.
[rnix]Accessprincipal_roleswhen initializing nodes withZODBPrincipalACLbehavior applied to avoid lazy creation. Needed to prevent_p_changedbeing set on first access.
[rnix]Do not rememberprincipal_rolesviainstance_propertydecorator
onZODBEntryPrincipalACLto avoidZODB.POSException.ConnectionStateErrorerrors.
[rnix]Proper handling ofZODBEntryandZODBEntryNodeinzodb_path.
[rnix]Addinclude_entryattribute toCatalogAwarebehavior. Flag controls
whether to index entry node in calatog.
[rnix]Addentryproperty toZODBEntryNode.
[rnix]Usepyramid_zodbconninstead ofrepoze.zodbconn.
[rnix]Setnode.interfaces.IOrderedoncone.zodb.entry.ZODBEntryto fixtreerepr.
[rnix]Python 3 compatibility.
[rnix]Upgrade tocone.app1.0b1.
[rnix]< 1.0Initial work.
[rnix]LicenseCopyright (c) 2011-2021, BlueDynamics Alliance, Austria
Copyright (c) 2021-2022, Cone Contributors
All rights reserved.Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: conf
confAverysimple andlightweightconfiguration loader and parser for Python.Supports:ini files (*.ini)json files (*.json)yaml files (*.yml,*.yaml)InstallationBare installation:pip install confInstallation with support for YAML:pip install "conf[yaml]"UsageStarting your appStart your app with your configuration file:python your_app.py --config your_config.ymlOr:python your_app.py --config config_env_varThe--configargument can be:a relative path to a file;an absolute path to a file;the name of an environment variable which value holds one of the above.You are allowed to provide multiple configuration names (separated by a single space), in which case any setting of a former
configuration file can be overwritten by a setting of a later configuration file (if the name of that setting is identical).Once you have supplied your application with some configuration, you can fetch the settings of that configuration. There are
three options of how to do that.Fetching your setting (option 1)Simply get your setting from theconfmodule:importconfyour_setting=conf.your_settingFetching your setting (option 2)Import your setting directly:fromconfimportyour_settingFetching your setting (option 3)You can provide a default value if you are not sure the setting will be present:importconfyour_setting=conf.get('your_setting','your default value')Note: If you use an ArgumentParser in your own application for other purposes, you must use theparse_known_args()method of the parser.Fetching your setting (option 4)You can get the configuration as a dictionary and get your setting as you would get any value from adict:importconfconf_dict=conf.asdict()your_setting=conf_dict.get('your_setting','your default value')MetaThis lib was designed and written in 2018 byfinetuned89andramonhagenaars.
Package: conf2levels
A configuration reader which reads values stored in two key levels.
The first key level is namedsectionand the second levelkey.argparse arguments (argparse): (You have to specify a mapping)mapping={'section.key':'args_attribute'}A python dictionary (dictonary):{'section':{'key':'value'}}Environment variables (environ):exportprefix__section__key=valueINI file (ini):[section]key=valueCONF_DEFAULTS={'email':{'subject_prefix':'command_watcher',},'nsca':{'port':5667,},}CONFIG_READER_SPEC:Spec={'email':{'from_addr':{'description':'The email address of the sender.',},'to_addr':{'description':'The email address of the recipient.','not_empty':True,},'to_addr_critical':{'description':'The email address of the recipient to send ''critical messages to.','default':None,},'smtp_login':{'description':'The SMTP login name.','not_empty':True,},'smtp_password':{'description':'The SMTP password.','not_empty':True,},'smtp_server':{'description':'The URL of the SMTP server, for example: ''`smtp.example.com:587`.','not_empty':True,},},'icinga':{'url':{'description':'The HTTP URL. /v1/actions/process-check-result ''is appended.','not_empty':True,},'user':{'description':'The user for the HTTP authentification.','not_empty':True,},'password':{'description':'The password for the HTTP authentification.','not_empty':True,},},'beep':{'activated':{'description':'Activate the beep channel to report auditive ''messages.','default':False,}}}config_reader=ConfigReader(spec=CONFIG_READER_SPEC,ini=config_file,dictionary=CONF_DEFAULTS,)
Package: conf4ini
Installationpip install conf4iniUsagefrom pathlib import Path
from pprint import pprint

from conf4ini import Config

# not specified path
conf_no_path = Config()
pprint(conf_no_path)

with specified the settings path
conf_with_path = Config(Path(__file__).resolve().parent / 'dev')
pprint(conf_with_path)MoreTo Be Continue ….
Package: confar
Confar"Configuration Aggregator and Runner" is an application that consolidates configuration data and executes tasks or processes based on that configuration.Confar is a Python CLI and library for configuration management, designed to aggregate and manage configuration data and execute tasks based on that configuration.Table of ContentsInstallationUsageContributingLicenseInstallationYou can installconfareasily using the provided installation script by running it with theshcommand.Note: Make sure you have a working internet connection before proceeding.Installation StepsOpen your terminal.Download and run the installation script usingsh:sh-c"$(curl-fsSLhttps://sanjairocky.github.io/confar/install.sh)"orAlternatively, you can use wget to download and execute the script:sh-c"$(wgethttps://sanjairocky.github.io/confar/install.sh-O-)"orAlternatively, you can use pip to install:pipinstallconfarTo verify that confar is installed successfully, you can run the following command:confar--versionUsageCLIconfar<command>[options]For detailed CLI documentation and examples, refer to the CLI documentation.Libraryimportconfar# library usageFor detailed library documentation and examples, refer to theLibrary documentation.ContributingWe welcome contributions from the community. If you'd like to contribute to Confar, please read our Contributing Guidelines and Code of Conduct.LicenseConfar is licensed under the MIT License - see the LICENSE file for details.MIT LicenseCopyright (c) 2023 Sanjai Kumar ArumugamPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: confboy1
ConfboyBetter configs with TOML support.InstallationUse the package managerpipto install confboy.pipinstallconfboyUsageimportconfboybase_config={'nested':{'one':1,'two':2,},'three':3,}config=confboy.Config(base_config)config.nested.one# Returns `1`config.three# Returns `3`Although it is advised not to change the config
during runtime, it is also possible:config.nested.one=10config.nested.one# Returns `10`config.new_nested={'one':1}config.new_nested.one# Returns `10`Confboy also supports dynamic values
that can use other values from the same config.
You can use it to build connection URLs or whatever.
Shines with changing config during runtime:
changeconfig.postgres.userandconfig.postgres.urlwill be rebuilt on every query if it's a callable.
You can do various things with it including mapping
and filtering values the app got from the TOML config,
cast types, whatever comes to your mind.
Callables work on any nested level.config=confboy.Config({'a':{'a':1},'b':2,'a_plus_b':'callable:add',# Tell confboy to call `add` from provided callables})defadd():returnconfig.a.a+config.bconfig.register_callable(add)config.a_plus_b# Returns 3Confboy can take values from TOML files as well.
Provided config will be merged over base config.# config.toml[nested]one=1two=2not="nested"config=confboy.Config(toml_config_path='config.toml')config.nested.one# Returns 1config.not# Returns 'nested'Confboy's merges aresoft: if the value
is present in the config but not in patch,
it won't be deleted from the config.
It supports value deletion and everything.
Just try it out or check the source code!Async functions as callablesCurrentlyconfboydoes not support asynchronous functions
as callables. That would bring interface inconsistency
likeawait config.foovsconfig.foo. You can wrap
your asynchronous function like that:config.register_callable(functools.partial(asyncio.run,async_func()))Although that'd block the event loop.
Package: confcompiler
Supported Data Types- Str
- Int
- Float
- Bool
- Tuple
- List
- Dict
- Complex
- BytesRead Data>>>fromconfcompilerimportConfRead>>>>>>Hostname=ConfRead('Config.conf','Hostname')>>>Hostname127.0.0.1>>>type(Hostname)<class 'str'>>>>>>>Connected=ConfRead('Config.conf','Connected')>>>ConnectedTrue>>>type(Connected)<class 'bool'>Write Data>>>fromconfcompilerimportConfWrite>>>>>>ConfWrite('Config.conf','Hostname','127.0.0.1')>>>ConfWrite('Config.conf','Connected',True).conf Cheat SheatCommenting - All comments must start with '#' and must be on
             there on line, you cannot comment a line with
             data involved.

Variables  - Data must start with a variable name then continued
             with '=' after that the data.

Data Types - Str, Int, Float, Bool, Tuple, List, Dict, Complex, Bytes
Package: conf_d
read configuration files, conf.d styleRequirementsPython 2.6+ or Python 3.4+InstallationUsing PIP:From Github:pip install git+git://github.com/josegonzalez/conf_d.git#egg=conf_dFrom PyPI:pip install conf_d==0.1.0Usageusage:# in your /etc/derp/conf file
[derp]
no: sleep
til: brooklyn

[herp]
sleep: 1
wait: 5.0
timeout: seventy

# From your fictional derp module
from conf_d import Configuration

def digitize(config):
    for key in config:
        if not config[key].isdigit():
            try:
                config[key] = float(config[key])
            except ValueError:
                pass
        else:
            try:
                config[key] = int(config[key])
            except ValueError:
                pass

        return config

# All defaults must be strings
conf = Configuration(
    name="derp",
    path="/etc/derp/conf",
    main_defaults={
        "no": "one",
        "expected": "the spanish inquisition",
        "cats": "1",
    },
    section_parser=digitize
)

what_not_to_do = conf.get(section='derp', key='no', default="jumping")
# "sleep"

until_when = conf.get(section='derp', key='til')
# "brooklyn"

cats = conf.get(section='derp', key='cats')
# "1"

dogs = conf.get(section='derp', key='dogs')
# None

sleep = conf.get(section='herp', key='sleep')
# 1

wait = conf.get(section='herp', key='wait')
# 5.0

timeout = conf.get(section='herp', key='timeout')
# "seventy"

section_exists = conf.has(section='derp')
# True

section_exists = conf.has(section='derp', key='no')
# True

raw_data = conf.raw()
# {
#    'sections': {
#       'herp': {
#          'sleep': 1,
#          'wait': 5.0,
#          'timeout': 'seventy'
#       }
#    },
#    'derp': {
#       'expected': 'the spanish inquisition',
#       'til': 'brooklyn',
#       'cats': '1',
#       'no': 'sleep'
#    }
# }Changelog0.1.0 (2018-12-12)Feat: add release script. [Jose Diaz-Gonzalez]Add support for Python 3 (up to Python 3.7) [Xavier Hardy]Add tox.ini file
Add gitignore0.0.4 (2013-12-13)Change assertDictEquals to assertEquals. [Clay Pence]Allow using custom config parser. [Clay Pence]Instead of using ConfigParser.ConfigParser, let the user pass
in a parser.0.0.3 (2013-05-23)Allow overriding the confd_path from an entry in the main config.
[Jose Diaz-Gonzalez]0.0.2 (2013-04-18)Fix issue where main section was not always created. [Jose Diaz-
Gonzalez]0.0.1 (2013-04-14)Initial commit. [Jose Diaz-Gonzalez]