1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
Config Components for Python
This module is a part of the Pip.Services polyglot microservices toolkit.
The Config module contains configuration component definitions that can be used to build applications and services.
The module contains the following packages:
- Auth - authentication credential stores
- Config - configuration readers and managers, whose main task is to deliver configuration parameters to the application from wherever they are being stored
- Connect - connection discovery and configuration services
Use
Install the Python package as
pip install pip_services4_config
Example how to get connection parameters and credentials using resolvers. The resolvers support "discovery_key" and "store_key" configuration parameters to retrieve configuration from discovery services and credential stores respectively.
from pip_services3_commons.config import ConfigParams, IConfigurable
from pip_services3_commons.refer import IReferences, IReferenceable
from pip_services3_commons.run import IOpenable
from pip_services3_components.auth import CredentialParams, CredentialResolver
from pip_services3_components.connect import ConnectionParams, ConnectionResolver
class MyComponent(IConfigurable, IReferenceable, IOpenable):
__connection_resolver = ConnectionResolver()
__credential_resolver = CredentialResolver()
def configure(self, config):
self.__connection_resolver.configure(config)
self.__credential_resolver.configure(config)
def set_references(self, references):
self.__connection_resolver.set_references(references)
self.__credential_resolver.set_references(references)
# ...
def open(self, context):
connection = self.__connection_resolver.resolve(context)
credential = self.__credential_resolver.lookup(context)
host = connection.get_post()
port = connection.get_port()
user = credential.get_username()
pas = credential.get_password()
# ...
# Using the component
my_component = MyComponent()
my_component.configure(ConfigParams.from_tuples(
'connection.host', 'localhost',
'connection.port', 1234,
'credential.username', 'anonymous',
'credential.password', 'pass123'
))
my_component.open(None)
Develop
For development you shall install the following prerequisites:
- Python 3.7+
- Visual Studio Code or another IDE of your choice
- Docker
Install dependencies:
pip install -r requirements.txt
Run automated tests:
python test.py
Generate API documentation:
./docgen.ps1
Before committing changes run dockerized build and test as:
./build.ps1
./test.ps1
./clear.ps1
Contacts
The initial implementation is done by Sergey Seroukhov. Pip.Services team is looking for volunteers to take ownership over Python implementation in the project.
Metadata
Release files for pip-services4-config 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pip_services4_config-0.0.3.tar.gz | 25.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pip_services4_config-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.6 kB
Release files / pip_services4_config-0.0.3.tar.gz
| Download URL | pip_services4_config-0.0.3.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d20c6128fea60e53c26b5f5f69742b30f0963b4e3a7afe490ec24c1475439243
|
|
BLAKE2b-256 checksum How to use checksums |
c7c2a10c24e60752f8c951b87e2af7c77969b12a2a80b05e8ffda612480252eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / pip_services4_config-0.0.3-py3-none-any.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pip_services4_config-0.0.3-py3-none-any.whl |
|---|---|
| Size | 34.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad3218483a736e50564d5cfd649eca05a7e16a38df55577cef489046e4b0b006
|
|
BLAKE2b-256 checksum How to use checksums |
15df6597d27acc11b9c40bf8667c31a484192e45a9ba7dc51062035284415b2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for pip-services4-config 0.0.3
Upload timing
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.