Rapidly create services.
Project description
The Zen of oriole: speed defines the winner.
Prerequisites
Install following packages
mongodb
mysql
rabbitmq
redis
python3.6
libpython3.6
In ubuntu, you can use apt-get to install. Python3.6 and libpython3.6 have been installed in Ubuntu >= 18.04.
Install oriole-service
pip install oriole-service
Add services.cfg
AMQP_URI: pyamqp://test:test@127.0.0.1 database: mysql://test:test@127.0.0.1/test?charset=utf8 test_database: mysql://test:test@127.0.0.1/test?charset=utf8 datasets: redis://127.0.0.1
Add orm
dao/__init__.py
from oriole_service.db import * class Eric(Base): __tablename__ = 'eric_table' uid = Column(types.Integer(), primary_key=True, autoincrement=True) param = Column(types.Unicode(255), unique=None, default='')
Add services/log.py
from oriole_service.app import * class LogService(App): name = service_name(__file__) ver = "1.0.0" @rpc def add(self, params={"param": "eric"}): self.log.debug("# %s(%s)" % ("add", params)) return self._o(params)
run
o r log
monitor
o s
document
o d
check
Run o s to do the same thing.
Create docker image
DONOT use it if you don’t know docker at all before.
Create log_service image.
o b log
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for oriole_service-28.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54bbae7389d87a3b4ff76d2dff856aa0828f58d34833b86d6e7f03859315703b |
|
MD5 | 0ccb3de36782aee2b96127a99e9fb46b |
|
BLAKE2b-256 | 783b64354586b8e87829ec76169ce5ef860cb8bc1827e53a19a931d48a756a2b |