fython - feathers-python
Node.js module for creating Feathers.js Backend Services based on Python Scripts
Requirements
Setup
$ npm install --save feathers-python
Usage
Given this python-script in 'test/helloWorld.py':
import sys as sysprint("Hello " + + "!")
Use this in your Feathers.js App:
const FythonService = // given a feathers-appapp = ; // register a python service to your appconst options = scriptPath: 'test/helloWorld.py' // python script to be executed pythonVersion: 'v2' // python version 'v2' || 'v3'; app; // use the python serviceservice = app; // POST /pythonScriptservice; // GET /pythonScriptservice; // PATCH /pythonScriptservice;
Testing
Run tests
- Go into project folder
- run
npm test
Updating Changelog
We use github-changelog-generator
for updating the Changelog automatically.
$ gem install github_changelog_generator$ github_changelog_generator -u pinussilvestrus -p feathers-python --no-http-cache
Releasing
We use np
for releasing new versions
$ npm i -g np$ np