Skip to main content

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


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 details)

Uploaded Source

File details

Details for the file lean_manufacturing-1.8.tar.gz.

File metadata

  • Download URL: lean_manufacturing-1.8.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.0

File hashes

Hashes for lean_manufacturing-1.8.tar.gz
Algorithm Hash digest
SHA256 7dec8f50ab2c9df72358a85de2b80f03f4bbae7b54343af3c7dbe7c9a82d5d23
MD5 8085c6fd7ac0ebd456c10910a308b10d
BLAKE2b-256 42f889791f88ee256fbf6bcd3508f98cafa15e0534fb2df97f1bf1223b80f40e

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