No project description provided
Project description
Lean manufacturing for Python
- Use lean manufacturing concepts to optimize python workflow.
- Organize and access your workflow through a mongodb local installation.
- Make your relevant functions independent from each other.
- Configure your functions through mongodb while your scripts are running.
- Measure setup duration, process duration and lead time.
- Monitor the status of each worker in real time.
- Schedule running times and periods
The lean principles behind it
- Define value for the customer
- Determine the value stream for each product
- Create a free flow of materials and a backwards flow of information
- Implement a pull system in the costumer-supplier relationship
- Continously pursue perfection in the process
General concept
Requirements
You'll need a localhost default installation of the community version of MongoDb (i.e. accessible at mongodb://localhost:27017).
This is a great and easy-to-use database, completely free. Please see https://www.mongodb.com/docs/manual/installation/ if you need help with the installation.
Not required, but useful
Mongodb Compass is a free software from mongodb that allows you to visually edit your mongodb databases. Please see https://www.mongodb.com/products/compass if you want to download it.
Usage
Syntax
@Lean.value_stream(
value_stream,
supplier = <dict>,
client = <dict>,
schedule = <str>
)
supplier = {
list: <list> # for supplier as list, instead of db values
uri: <str>, # for remote connection only
db: <str>, # for remote connection only
collection: <str>,
unique: <str>,
aggregation: <list>,
order: <int>,
regex: <str>,
gt: <int>,
content: ['@all', '@inventory', '@supplier', '@existing'],
}
client = {
uri: <str>, # for remote connection only
db: <str>, # for remote connection only
collection: <str>, # for remote connection only
unique: <str>,
update: <boolean>
}
schedule: <str> # choose from '@hourly', '@daily', '@weekly', '@monthly', '@annually'
Getting the input from a supplier remote mongodb installation
@Lean.value_stream('my_value_stream',
supplier={
uri: 'your mongodb uri',
db: 'db_name',
collection: 'collection_name',
aggregation: [{'$project': {'_id': 0}}],
unique: 'field_a'
},
client={
unique: 'field_b'
}
)
def my_first_process(input, **config):
# do something with input
output = [element for element in input]
return output
Getting the input from another supplier process
@Lean.value_stream('my_value_stream',
supplier={
collection: 'my_value_stream.my_first_process',
unique: 'field_b'
},
client={
unique: 'field_c'
}
)
def my_other_process(input, **config):
# do something with input
output = [element for element in input]
return output
Updates
1.7
- Registers availability by the minute.
1.8
- Syntax improvement
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
lean_manufacturing-1.8.tar.gz
(9.2 kB
view hashes)