Skip to main content

Python & Conduit Integration Library

Project description

42Q- MES - Conduit Integration Setup!

Author - Melvin Paul Miki Version - 1.1.2

#Importing the Module:

> import mesconduit

#Creating a session:

> session = mesconduit.conduit(url,username,password,device_id,clinet_id)

    Attributes Descriptions

            #  url        => Enter the url to do the conduit
            #  Username   => Enter the username of the user
            #  password   => Enter the password of the user
            #  station_id => Enter the device id to be processed
            #  client_id  => Enter the device id to be processed

Login Valdation: > session.mes_login()

    ==> True  - Authorised User
    ==> False - Unathorised User    

Stage Pasing the unit

> session.mes_PassUnit("123456")

    ==> STATUS :: Respective Message from the MES

    Attributes Descriptions

            #  Unit Serial Number   => "123456"

Mutli Units Pasing

> session.mes_MultiPass(["1234","5678",.,.,.,.,n])

    ==> [STATUS :: Respective Message from the MES,STATUS :: Respective Message from the MES,.,.,.,.,.,n]

    Attributes Descriptions

            #  Unit Serial Numbers   => ["123456","5678"]

Applying MEO the Serial Number

> session.mes_ApplyMeo("123456","Screw 1 - Passed")

    ==> STATUS :: Respective Message from the MES

    Attributes Descriptions

            #  Unit Serial Number   => "123456"
            #  Added MEO Message    => "Screw = 1" 

Adding non tracked component

> session.mes_AddNonTrackedComponent("123456","Strip","345363"):

    ==> STATUS :: Respective Message from the MES

    Attributes Descriptions

            #  Unit Serial Number   => "123456"
            #  Component Key        => "Strip" 
            #  Component Value      => "345363"  

Data Collector Execute in Command Prompt >python -c "import mesconduit; mesconduit.start_app()"

Ex:
    $Enter the conduit URL
        >www.conduit.com
    $Enter the operator Username
        >1234567
    $Enter the operator Password
        >1234567
    $Enter the Station Id
        >123
    $Enter the Client Id
        >abcb123
    $Serial Number?
        >12334BC123
    $STATUS :: Respective Message from the MES

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

mesconduit-1.1.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

mesconduit-1.1.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file mesconduit-1.1.2.tar.gz.

File metadata

  • Download URL: mesconduit-1.1.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for mesconduit-1.1.2.tar.gz
Algorithm Hash digest
SHA256 67c732ade5abce3052f8929df0d78543ab3265cb43d012eb7b4b888e08697711
MD5 0b538ed2263107b749767c4359f76f57
BLAKE2b-256 5ee64d870794a843138c131812d13c95fee9ba8a9c56696eb8314577767c70fd

See more details on using hashes here.

File details

Details for the file mesconduit-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: mesconduit-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for mesconduit-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ec75b5b7fa285d51c34ab745895a87afa240878d4d3f502d83a9912d1f7c57f
MD5 55077c19bc25019e1bbd6464dcf5beb3
BLAKE2b-256 45fb1256bdab279ebb6ba7114ee7f199a4e66a3a84796864bdb59bbf553388fc

See more details on using hashes here.

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