service.markets
Software-as-a-Service (SaaS) Marketplace with cryptocurrency payments
Service.markets runs on FastAPI and uses Aleph.im for decentralized hosting.
Initial setup
Install the FastAPI library and Uvicorn:
poetry install
Activate the virtual environment, if not already done:
poetry shell
Run on local
Running the API
Uvicorn is used to run ASGI compatible web applications, such as the app
web application from the example above. You need to specify it the name of the
Python module to use and the name of the app:
python -m uvicorn src.service_markets.api.main:app --reload
Then open the app in a web browser on http://localhost:8000
Tip: With
--reload, Uvicorn will automatically reload your code upon changes
Testing
To run the tests, you need to install the dev dependencies.
In order to avoid indexing all the messages and starting out with an empty database, you need to set the TEST_CHANNEL environment variable to true:
export TEST_CHANNEL=true
Then, you can run the API tests with:
poetry run pytest src/service_markets/api/test.py
Note: The tests run sequentially and if one fails, the following ones will also fail due to the event loop being closed.
Environment variables
| Name | Description | Type | Default |
|---|---|---|---|
TEST_CACHE |
Whether to use the test cache | bool |
true |
TEST_CHANNEL |
Whether to use a fresh test channel | bool |
false |
ALEPH_CHANNEL |
The Aleph channel to use, is superseded by TEST_CHANNEL |
string |
None |
Metadata
Release files for service-markets 0.3.17
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 |
|---|---|---|---|---|
| service_markets-0.3.17.tar.gz | 22.2 kB | Without provenance | Details for service_markets-0.3.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| service_markets-0.3.17-py3-none-any.whl | Python 3 | none | any | Details for service_markets-0.3.17-py3-none-any.whl |
Total release size: 47.5 kB
Release files / service_markets-0.3.17.tar.gz
| Download URL | service_markets-0.3.17.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e227864b8b17124cd7e3e024d7434cc78398616dc97e18a61d952c4ec2b2a57f
|
|
BLAKE2b-256 checksum How to use checksums |
624b9efca423a54d451acdcde628375fd184b4860aeb5b59bdda18c222293bb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-76-generic
|
Release files / service_markets-0.3.17-py3-none-any.whl
| Download URL | service_markets-0.3.17-py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbc1375addce363cbef378d4266176b15db8ebf29493b42d337f2c96826cbe85
|
|
BLAKE2b-256 checksum How to use checksums |
a445b2f540fd6f3ed119dfe7fe6613135f223ad8475314843fbe23b9b7801ccb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-76-generic
|
Security for service-markets 0.3.17
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.