Skip to main content

Run python function utility

Project description

rfpython: run python function

A simple tool to run (or debug) a python function inside a python script from the command line.

Usage

rfpython python-file function-name

Using VSCode Debugger:

rfpython python-file function-name --debugger

With a remote attach configuration:

    {
        "name": "Python: Remote Attach",
        "type": "python",
        "request": "attach",
        "port": 5678,
        "host": "localhost",
        "pathMappings": [
            {
                "localRoot": "${workspaceFolder}",
                "remoteRoot": "."
            }
        ]
    }

Installation

rfpython is available from the Python Package Index, so simply do

pip install rfpython

to install.

Testing

To run the rfpython unit tests, check out this repository and type

pytest

License

rfpython is published under the MIT license.

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

rfpython-0.0.3.tar.gz (82.0 kB view details)

Uploaded Source

File details

Details for the file rfpython-0.0.3.tar.gz.

File metadata

  • Download URL: rfpython-0.0.3.tar.gz
  • Upload date:
  • Size: 82.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

File hashes

Hashes for rfpython-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d8a21ab48de4c87c572fddde73c12214b5720dfe474d6caea91997cc1cf44e41
MD5 4f6484ec64d47addbd8e6c40eebfb542
BLAKE2b-256 3d454983b16bac47528d19aa116388a86c7aba55237cf8b6ff1af0b9e9c5091e

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