MoonHub.ai logging manager to push logs into GCP Cloud Logging
Project description
Logger
Ideation
This Logging Manager is to be used as a standardized system and structure to enable logging on different product offerings. We intend the logs to not only enable debugging platform exceptions, but to provide visibility, analytics and reporting on the health, engagement and usage of our products and systems.
Steps to Create and Upload Package
1. Create Token (First Time Only)
- Goto
pypi.org
and create your login - Go to api-tokens and create your API token to securely upload your packages.
- Copy and save your token in a safe place on your disk.
2. Install Dependencies
Install following
py -m pip install --upgrade build
py -m pip install --upgrade twine
3. Build Package
execute following command
py -m build
Once the process above is completed, a new directory is generated called dist/
with two files in it. The .tag.tz
file is the source archive and the .whl*
file is the built archive. These files represent the distribution archives of our Python package which will be uploaded to the Python Package Index and installed by pip in the following sections.
4. Check and Upload Package to PyPi Server
twine
is a python package that goes through a checklist of items to see if your distribution/package is compatible for publishing.
Check if your distribution is all set to go .
execute following command to check distributions before upload
twine check dist/*
execute following command to upload latest distribution
twine upload --skip-existing --repository-url https://upload.pypi.org/legacy/ dist/*
MIT License
Copyright (c) [year] [fullname]
Permission 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mh-logger-0.0.2.tar.gz
.
File metadata
- Download URL: mh-logger-0.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 803ff969657bb415792a3ac41fc8da9b830c7aac54106149dee943641ad4d75e |
|
MD5 | 93dc06a5bac8443cc6bb1fcd3889c129 |
|
BLAKE2b-256 | 3ff5a9aa191cf9c683cd79dd04c5fe769cee83ed441ee7821838eaa3c5a3028f |
File details
Details for the file mh_logger-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: mh_logger-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54e8c1c9c7173d9c4c6d40c9cc5b28d18b207873291a62e4852738037112500 |
|
MD5 | f20f42b8f06c03cd7d01ca93e1d8f7a3 |
|
BLAKE2b-256 | c52c8e67ca94b1d1c14cc7e2b3d5cbebf5c54d949a75ed0017fd4e18aabf4669 |