Magic API
The Magic API!
- incr the toml version
- poetry publish --build
For CLI:
Magic CLI (magicapi has this built in)
The best server maker.
Steps:
-
pip install magicapi (make sure the pip points to the correct python (3.6+))
-
cd into the directory you want the server to be in
// use the cli to create the app
-
magic create < app name >
-
cd < app name >
// now make the virtual env and pip install the requirements 5) python3 -m venv venv
-
source venv/bin/activate
-
pip install -r requirements.txt -
pip install --upgrade magicdb magicapi
// files needed to run 8) Create an .env file in the < app name > directory.
a) Use the ".example_env" as a template. Fill in the env variables for the services you will need to use.
b) The SERVICE and TASKS_TABLE_NAME are required for the app.
// add firestore
- add the firestore service account json to the < app name > and name it "my-service-account.json"
// to deploy to aws lambda
-
Create a user on AWS and sign in via the CLI (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html)
-
npm i
-
magic deploy
That should be it for the setup!
Time to run it!
To start a local server: magic start
To test local server (while local server is running): magic test
To deploy for the first time or any time you change the serverless yaml: magic deploy
To deploy when you just edited the app code: magic deploy_again
To update magicapi: pip install --upgrade magicapi
Metadata
Release files for magicapi 0.1.147
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 |
|---|---|---|---|---|
| magicapi-0.1.147.tar.gz | 19.6 kB | Without provenance | Details for magicapi-0.1.147.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magicapi-0.1.147-py3-none-any.whl | Python 3 | none | any | Details for magicapi-0.1.147-py3-none-any.whl |
Total release size: 47.8 kB
Release files / magicapi-0.1.147.tar.gz
| Download URL | magicapi-0.1.147.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7c041875851672f28956676cb81a3b15f1f99b6ce7a6e1b5d8c9051f2e5578b
|
|
BLAKE2b-256 checksum How to use checksums |
ac616064d620b9b5dfdb897c2b3a4905d4ec4d7aa3604f970329da137ed8b3b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Darwin/21.1.0
|
Release files / magicapi-0.1.147-py3-none-any.whl
| Download URL | magicapi-0.1.147-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd5cc66a31db04f7479bc3d4ccc52d80fe2e5df7cce4e73739208bd2099737fb
|
|
BLAKE2b-256 checksum How to use checksums |
b11582f08b23c06a0e4c9cc0512fbe54b5d212477d97dbc684d5d68dfe859f4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.9.7 Darwin/21.1.0
|
Security for magicapi 0.1.147
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.