Skip to main content

A python package for yellowdot's base classes and Utilities

Project description

Publish yd_base_py

YD-BASE-PY

A python package that houses yellow dot's common classes & code across its microservices

Installation from GitHub

pip install git+https://github.com/Yellow-Dot-Energy-Company-Ltd/yd_base_py.git

Installation from GitHub (specific branch)

pip install git+'url branch'

Installation from GitHub (specific tag)

pip install git+'url tag'

Installation from GitHub (specific commit)

pip install git+'url commit'

Installation from GitHub (Package)

pip install git+'url package'

Installation from PyPi

pip install yd-base-py

Requirements

  • Python 3.6+
  • pip 20.0.2+
  • pytest 5.4.1+
  • twine 3.1.1+
  • setuptools 46.1.3+
  • firebase-admin 4.4.0+

Features

  • YDLogger
  • YDFirebase
  • YDFirebaseUserUtils
  • YDFirebaseFCM
  • FBUserResponse
  • Response

Usage

from yd_base_py import YDLogger
logger = YDLogger.get_logger(__name__)
logger.info("Hello World")

Development

git clone 'Repo URL'
cd yd_base_py
pip install -e .

Testing

pip install -r requirements.txt
pytest

Publishing

python setup.py sdist bdist_wheel
twine upload dist/*

License

MIT GNU

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yd_base-1.0.3-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file yd_base-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: yd_base-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for yd_base-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f8439bc5faf1eca6d1323c93e7612027b06337c96779655114d077e4322eb8cb
MD5 710f44cceb4e15cb9e6f84855a43d2d6
BLAKE2b-256 bc0fc093f19a95c04af2b9faf5dda56afe5218581b61bea6a112b9815c05fcce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page