Skip to main content

A virtual IoT hardware simulator.

Project description

CounterFit

IoT is great fun, but has a downside - hardware. You need access to a range of devices such as sensors and actuators to build your IoT projects. Sometimes you might have these devices, other times you may not - maybe you are waiting for a delivery, or parts are out of stock, or they are too expensive.

That's where this tool comes in.

What is CounterFit

CounterFit is a tool that is designed to simulated various IoT hardware components, such as LEDs, buttons, temperature sensors and the like. It is made of two parts:

  • The CounterFit app - this is a web app run locally where you can connect virtual sensors and actuators to your virtual hardware
  • Shims - these are libraries that mimic popular hardware APIs so you can take code that runs against well known hardware and run it against the CounterFit app.

Getting started

  • Install the CounterFit app:

    pip install CounterFit
    
  • Run the app:

    CounterFit
    
  • The app will launch, listening for web requests on port 5000, and open a web browser for you to start adding virtual sensors and actuators to your project

Running on a different port

To use a different port than the default 5000, set the --port option when you run the app:

CounterFit --port 5050

Connecting your code

You can connect your device code to CounterFit, using one of the available shims. See the shim list for more details.

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CounterFit-0.1.3.dev2-py3-none-any.whl (76.5 kB view details)

Uploaded Python 3

File details

Details for the file CounterFit-0.1.3.dev2-py3-none-any.whl.

File metadata

  • Download URL: CounterFit-0.1.3.dev2-py3-none-any.whl
  • Upload date:
  • Size: 76.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for CounterFit-0.1.3.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab00fe87708470cb0305f5fc0af5d33f0108b00fa793c75dfb34f6b5e8c3119
MD5 7acebd24b1ba81f4faa3cf8436e10fe3
BLAKE2b-256 241e32f6d8c63313f1b5187e1f9e76b9ab8d0670bee65d07acdf2c44cbe7531e

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