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

yd_base_1.0.2-1.0.2-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

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