It's a script to transform yaml file to SQL-code.
We worked as a migration to the database. You can create your migration through of migration.yaml file inside migrations folder and run the script for migrate.
Install
You can install the script through of pip command:
pip intall flore
Usage
Run the command flore init to create migration folder with the follow files:
- migration.yaml
- seed.yaml
- config.yaml
Configuration
For configuration the migration, open config.yaml file and set information:
dialect: 'pg'
host: 'localhost'
port: 5432
username: 'postgres'
password: 'docker'
database: 'flore'
dialect is a name of the database service, for example: mysql, pg => postgres. Currently support postgres only. Now,
you can set username, password, database, port and host for you database.
Migration
For create migration you set in migration.yaml the following information:
tables:
users:
name:
- varchar:120
- required
email:
- varchar:84
- required
- unique
password:
- varchar:255
is_admin:
- boolean
- default false
products:
price:
- float
Run with the follow command
flore run
To migrate tables your postgres database.
Screenshot
Metadata
Release files for flore 0.0.2
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 |
|---|---|---|---|---|
| flore-0.0.2.tar.gz | 5.8 kB | Without provenance | Details for flore-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flore-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for flore-0.0.2-py3-none-any.whl |
Total release size: 12.8 kB
Release files / flore-0.0.2.tar.gz
| Download URL | flore-0.0.2.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d1f4890cbd4ef11edcb3598f2a26463c54b9aad727d25d4c6356ce73cb5b5fd
|
|
BLAKE2b-256 checksum How to use checksums |
0ff26be395d0b5bbc06f8281039edfdc3def56d9a4333f54ff54f30b9efdcd96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.3 CPython/3.8.6 Linux/5.8.15-201.fc32.x86_64
|
Release files / flore-0.0.2-py3-none-any.whl
| Download URL | flore-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91aa152a3201d02360b532bc93a924b9f3e278d2f80ed9d3ac0b222073c6dd66
|
|
BLAKE2b-256 checksum How to use checksums |
a2379c64191dd10da7a98a04e4c56fd773ec82de56c4e0d43d47b059e65a17fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.3 CPython/3.8.6 Linux/5.8.15-201.fc32.x86_64
|
Security for flore 0.0.2
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.