Skip to main content

Continuous flow process description, analysis, and automation

Project description


MechWolf

Python version Gitter chat DOI GPLv3 license CI status Netlify

MechWolf is a Python framework for automating continuous flow processes. It was developed as a collaboration between computer scientists, chemists, and complete novices to be used by anyone wanting to do better, faster, more reproducible flow-based science. Features include:

  • Natural language description, analysis, and visualization of continuous flow networks
  • Automated execution of protocols
  • Full user extensibility
  • Smart default settings, designed by scientists for scientists
  • Extensive checking to prevent potentially costly and dangerous errors before runtime
  • Natural language parsing of times and quantities
  • Thorough documentation and tutorials

Installation

It's as easy as:

$ pip install mechwolf

Or, to get the latest (but not necessarily stable) development branch:

$ pip install git+https://github.com/MechWolf/MechWolf.git

What can MechWolf do?

A lot. Let's say you're trying to automate the production of acetaminophen, a popular pain reliever and fever reducer. The reaction involves combining two chemicals, 4-aminophenol and acetic anhydride. The basic level of organization in MechWolf are individual components, such as the vessels and pumps.

First, we define our components and create an Apparatus object to hold them:

import mechwolf as mw

# define the vessels
aminophenol = mw.Vessel("15 mL 4-aminophenol")
acetic_anhydride = mw.Vessel("15 mL acetic anhydride")
acetaminophen = mw.Vessel("acetaminophen")

# define the pumps
pump_1 = mw.Pump()
pump_2 = mw.Pump()

# define the mixer
mixer = mw.TMixer()

# same tube specs for all tubes
tube = mw.Tube(length="1 m", ID="1/16 in", OD="2/16 in", material="PVC")

# create the Apparatus object
A = mw.Apparatus()

Next, we define the connectivity of the Apparatus with add(). add() expects three arguments, from_component, to_component, and tube (in that order). First, we connect aminophenol to pump_1 via tube:

A.add(from_component=aminophenol, to_component=pump_1, tube=tube)

Note that the keyword arguments are optional:

A.add(acetic_anhydride, pump_2, tube)

Since from_component is a list, both pump_1 and pump_2 will be connected to mixer.

A.add([pump_1, pump_2], mixer, tube)

Finally, connect mixer to the output vessel, acetaminophen:

A.add(mixer, acetaminophen, tube)

Then we define a Protocol and run it:

# create the Protocol object
P = mw.Protocol(A, name="acetaminophen synthesis")
P.add([pump_1, pump_2], duration="15 mins", rate="1 mL/min")

# execute the Protocol
P.execute()

That's it! You can do this and a whole lot more with MechWolf. To learn more, take a look at the docs.

Documentation

Link will go here

License

GPLv3 (summary).

Citation

Will go here.

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

mechwolf-0.1.1.tar.gz (35.6 kB view details)

Uploaded Source

File details

Details for the file mechwolf-0.1.1.tar.gz.

File metadata

  • Download URL: mechwolf-0.1.1.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for mechwolf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 065f9d4b3e821cedf1e9dce5003f8cec56331306a4590f57985ba1f0326b1ee5
MD5 47861b15b9fc96c2f5db5c9f06a628b1
BLAKE2b-256 9bd704e1688fb51d09dc29868ab32f2f2a6d88f8ef3ce47978f1ff60ee15d04d

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