Flowp 1.2.1
Flowp is a library which tries to bring the best ideas from Ruby / node.js world to Python making development more fun. For version 1.2.1 module flowp.testing is available which allows to write tests in a RSpec BDD style with minimum of magic and flowp.files module which brings convenient utils for files processing.
Installation
$ pip3 install flowp
Quick start
Test subject (mymodule.py):
class Calculator:
def __init__(self):
self.special_mode = False
def add(self, a, b):
sum = a + b
if self.special_mode:
sum += 1
return sum
Behavior specification (spec_mymodule.py):
import mymodule
from flowp.testing import Behavior, expect
class Calculator(Behavior):
def before_each(self):
self.subject = mymodule.Calculator()
def it_add_numbers(self):
expect(self.subject.add(1, 2)) == 3
class WhenHaveSpecialMode(Behavior):
def before_each(self):
self.subject.special_mode = True
def it_add_additional_one(self):
expect(self.subject.add(1, 2)) == 4
To run:
$ python3 -m flowp.testing --watch
Giving –watch flag script will be watching on python files, if some changes happen, tests will be rerun.
Documentation
Metadata
Release files for flowp 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flowp-1.2.1.tar.gz | 9.3 kB | Without provenance | Details for flowp-1.2.1.tar.gz |
Release files / flowp-1.2.1.tar.gz
| Download URL | flowp-1.2.1.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f558b16cf239f5f7f8a96bd390b0021332a2b444888063282294f52b7e533bf
|
|
BLAKE2b-256 checksum How to use checksums |
803ee67dd6c386bd80e6828bd251c84abe4853e80dabc864abb67be941eb63fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for flowp 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.