Skip to content

Commit 9c4611e

Browse files
authored
Merge pull request #3 from cfhamlet/develop
ref: rename the project name
2 parents 02448cc + 3f7b6dd commit 9c4611e

22 files changed

+57
-57
lines changed

.coveragerc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[run]
22
parallel = true
33
branch = true
4-
source = os_3m_engine
4+
source = os_m3_engine
55

66
[paths]
77
source =
8-
src/os_3m_engine
9-
.tox/*/lib/python*/site-packages/os_3m_engine
8+
src/os_m3_engine
9+
.tox/*/lib/python*/site-packages/os_m3_engine

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ deploy:
2121
provider: pypi
2222
user: cfhamlet
2323
password:
24-
secure: eL8ptaVhcvilnSvCFlETjDlBFUL0ecbLjN8BWGwRBkjDcYqHPOze/E9sff0sdDBjiyiQbKu7MD554xAfSn8FsqlQLuQfVqT8RbgSKs2vdmwjOHwCENlINY4fmk+HCtvjWnK8r2hxWB87pxQOZ6Uqb4tYizRpQtOFxNEO9QlfjRRz/M4M6fjzO7BWybEUlxnPQn9IHXP+eGoSdHVg63d4EBmh7CcNCR4/lG7OSo89fJ0IjgWgDHv2P5vHOGeiZW7gc1jiHPeppc3vtCUfwLZ2D6bAps65zv/8jpgnzIiKz+XPtzzkcxMG9ZydN1vLMRFKHp+w2uPWXFn3BHxQ0ImQ5uW5hbyT9I7LehtWkdkEZhiyKTTfCUltns8lsSVG+w74SAHPUHyVj09msWvYioHx5gVKqSKzteEek/dZGxTBi6S1ifaMs4mWyqs2wCvcMkPGlLVCdGuO0soYqxXj4HmMQ0Fq9l4Bo4tRXZNjcshNO8Dje3MSTP6eO2XCnOf547D5/X3cZ6MqBPjZnqv6bg/qZFrxathJEXfqcHseWPUM4eTBEGu/69QRSEE72cx0Gmzo9HW18RQE1O/7+/Gn/rzKkGj7S/JrR3fYZVUj4AQnxroq2qgBYsW7R348jJHDq0EVRwzvRrVpUDrzIOHpdlJRBiZ6mtEObBRdrYlWRhFbuBM=
24+
secure: UyRk0TWj/RARDioa5+o8VlNTojY3hvYT9ILHi7Twnxl3f9EX/9gAuxNr7A5hGfklwQD3TrAd/mS8NyvulJj1xAWEPG4XDfeqlqAjQO8ziZEn6Ozqd/aSyCjVu6WPDluxj4kjxsXebmmDcdtX206FVgdqsG6DoT3ZZ54SeRIsuBCS2A+IlXqj4vpkKwOWhI3CGeygV4GFtOjQIRQbfejPMht1hMv/eFIXdp1fNgXpzA38JwBa40Z3vyHX5QLNLT0ShL3c0D9KRkRbrBG29kcjyUdcOwp1Hb+WUCSw1oar3fEqLabbQtw8zxPD2IDl/teygCmUGC0ldqHM6y6FeF38UPsdcXiOwyh6BjQ6ezba8vw68Moe5sacoROBkApn0JqSKsFKSqKAatQEyfgHEvjWpJklQZXC7ikq4yd5TsGoZq0DHbPFot35zFYWFKDaq92k+I/rEPoly87gfQVa6OXI7IsCzo/WvTNwA9H9xd/guu3re/yOCLoc/5NTJZZotPdRuJaMwWNNY8Y9h03vvG0uxEMw1Sp4drmclkJvFZ41F8iGzrY1Yh2lZ4kSiQ5Zuy4Iij7fLkb7es44lcUIbnNPakn0tgDYw3utGeKi08fmvuvsK91SD8d8jIdZjPnS3W3CdZ0Bi1yTnblK6Z4GQOT4mSx9vzYH05X2rGXM6TkFHV8=
2525
true:
2626
tags: true
2727
condition: ${TOXENV} == py27

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include LICENSE
22
include README.md
33
include MANIFEST.in
44
include requirements.txt
5-
include src/os_3m_engine/VERSION
5+
include src/os_m3_engine/VERSION
66
graft src
77
graft tests
88
global-exclude __pycache__

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# os-3m-engine
1+
# os-m3-engine
22

3-
[![Build Status](https://www.travis-ci.org/cfhamlet/os-3m-engine.svg?branch=master)](https://www.travis-ci.org/cfhamlet/os-3m-engine)
4-
[![codecov](https://codecov.io/gh/cfhamlet/os-3m-engine/branch/master/graph/badge.svg)](https://codecov.io/gh/cfhamlet/os-3m-engine)
5-
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/os-3m-engine.svg)](https://pypi.python.org/pypi/os-3m-engine)
6-
[![PyPI](https://img.shields.io/pypi/v/os-3m-engine.svg)](https://pypi.python.org/pypi/os-3m-engine)
3+
[![Build Status](https://www.travis-ci.org/cfhamlet/os-m3-engine.svg?branch=master)](https://www.travis-ci.org/cfhamlet/os-m3-engine)
4+
[![codecov](https://codecov.io/gh/cfhamlet/os-m3-engine/branch/master/graph/badge.svg)](https://codecov.io/gh/cfhamlet/os-m3-engine)
5+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/os-m3-engine.svg)](https://pypi.python.org/pypi/os-m3-engine)
6+
[![PyPI](https://img.shields.io/pypi/v/os-m3-engine.svg)](https://pypi.python.org/pypi/os-m3-engine)
77

88
Multi-thread engine for 3(or 2) stages job.
99

@@ -31,34 +31,34 @@ Something else need to know:
3131

3232
# Install
3333

34-
`pip install os-3m-engine`
34+
`pip install os-m3-engine`
3535

3636
# API
3737

3838
* Create default engine, a typical 3-stage job:
3939

40-
- frontend: ``os_3m_engine.ootb.StdinFrontend``, read from stdin, send to transport stage
41-
- transport: ``os_3m_engine.ootb.LogTransport``, log data received from fronted, send to backend stage
42-
- backend: ``os_3m_engine.ootb.LogBackend``, log data received from transport
40+
- frontend: ``os_m3_engine.ootb.StdinFrontend``, read from stdin, send to transport stage
41+
- transport: ``os_m3_engine.ootb.LogTransport``, log data received from fronted, send to backend stage
42+
- backend: ``os_m3_engine.ootb.LogBackend``, log data received from transport
4343

4444
```
45-
from os_3m_engine.launcher import create
45+
from os_m3_engine.launcher import create
4646
4747
engine = create()
4848
```
4949
5050
* Create engine with custom defined stage:
5151
5252
```
53-
from os_3m_engine.launcher import create
53+
from os_m3_engine.launcher import create
5454
5555
engine = create(transport_cls='transport_class_path_or_class')
5656
```
5757
5858
* Create engine with custom engine config:
5959
6060
```
61-
from os_3m_engine.launcher import create
61+
from os_m3_engine.launcher import create
6262
6363
config = WhateverOjbectYouWant
6464
config.thread_num = 10
@@ -77,7 +77,7 @@ Something else need to know:
7777
7878
```
7979
from signal
80-
from os_3m_engine.launcher import create
80+
from os_m3_engine.launcher import create
8181
8282
engine = create()
8383
@@ -91,11 +91,11 @@ Something else need to know:
9191
9292
* Custom frontend class:
9393
94-
- inherit from ``os_3m_engine.core.frontend.Frontend``
94+
- inherit from ``os_m3_engine.core.frontend.Frontend``
9595
- define ``produce`` method as generator
9696
9797
```
98-
from os_3m_engine.core.frontend import Frontend
98+
from os_m3_engine.core.frontend import Frontend
9999
100100
class CustomFrontend(Frontend):
101101
def produce(self):
@@ -104,11 +104,11 @@ Something else need to know:
104104
105105
* Custom transport class:
106106
107-
- inherit from ``os_3m_engine.core.transport.Transport``
107+
- inherit from ``os_m3_engine.core.transport.Transport``
108108
- define ``transport`` method, the only parameter is the data received, the return value will be sent to backend
109109
110110
```
111-
from os_3m_engine.core.transport import Transport
111+
from os_m3_engine.core.transport import Transport
112112
113113
class CustomTransport(Transport):
114114
def transport(self, data):
@@ -117,11 +117,11 @@ Something else need to know:
117117
118118
* Custom backend class:
119119
120-
- inherit from ``os_3m_engine.core.backend.Backend``
120+
- inherit from ``os_m3_engine.core.backend.Backend``
121121
- define ``process`` method, the only parameter is the data received, no need return
122122
123123
```
124-
from os_3m_engine.core.backend import Backend
124+
from os_m3_engine.core.backend import Backend
125125
126126
class CustomBackend(Backend):
127127
def process(self, data):
@@ -134,7 +134,7 @@ Something else need to know:
134134
- use ``self.config`` to get the config in stage class
135135
136136
```
137-
from os_3m_engine.launcher import create
137+
from os_m3_engine.launcher import create
138138
139139
config = WhateverOjbectYouWant
140140
engine = create(app_config=config)
@@ -148,7 +148,7 @@ Something else need to know:
148148
149149
150150
```
151-
from os_3m_engine.core.backend import Backend
151+
from os_m3_engine.core.backend import Backend
152152
153153
class CustomBackend(Backend):
154154

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def read(*filenames, **kwargs):
1414

1515

1616
setup(
17-
name='os-3m-engine',
18-
version=read('src/os_3m_engine/VERSION'),
17+
name='os-m3-engine',
18+
version=read('src/os_m3_engine/VERSION'),
1919
packages=find_packages(where='src'),
2020
package_dir={'': 'src'},
2121
include_package_data=True,
@@ -24,7 +24,7 @@ def read(*filenames, **kwargs):
2424
long_description=open('README.md').read(),
2525
author='Ozzy',
2626
author_email='cfhamlet@gmail.com',
27-
url='https://github.com/cfhamlet/os-3m-engine',
27+
url='https://github.com/cfhamlet/os-m3-engine',
2828
install_requires=open('requirements.txt').read().split('\n'),
2929
zip_safe=False,
3030
classifiers=[
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)