SC3020 Project 2
Installation
You can either choose to build from source or build from pypi, we require python version to be at least 3.9
Build from source
# Create a new conda environment
# Upgrade pip if necessary
# python3 -m pip install --upgrade pip
conda create --name sc3020 python=3.11
conda activate sc3020
# Install the package
python -m pip install -e .
# You can also run
# python -m pip install .
# to install it as a formal package
Build from PyPI
We have also prepared a PyPI version of it, you can also download it simply using pip. The code version is the same as the code in GitHub.
python -m pip install sc3020-g6-2024
Build with no-deps option
If you encountering any error when directly install the packages, you can also build the packages without any dependencies and then install the requirements from a txt file. We verified this environment version can successfully run the application
# Build only the sc3020 packages
python -m pip install --no-deps --no-cache-dir -e .
# Build the required requirements
python -m pip install -r requirements.txt
Config PostgreSQL
PostgreSQL is required to run the project. You can download it from here.
After installing PostgreSQL, you need to login to the user and create a database.
Here is an example.
We assume the user is the default user postgres.
psql -U postgres
And then we create a database named tpch.
CREATE DATABASE tpch;
You don't need to load the data into the database (or if you have done, it is better), because the project will download the data and load it into the database automatically. Make sure the database is served at the backend so that the application can connect to the database.
Run
A simple command to run the project:
# Use cli
sc3020
# Use python
python3 src/sc3020/project.py
# Or
python3 -m sc3020.project
# If you want to run the program as a python module
By default, the project will run on http://localhost:8000. You can then access localhost:8000 once you started the server. The default index page is a welcome page. Click the Go to Application button to actual go to the application. You can also direct access the localhost:8000/sc3020 to access the project.
Metadata
Release files for sc3020-g6-2024 0.2.0
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 | |
|---|---|---|---|---|
| sc3020_g6_2024-0.2.0.tar.gz | 2.9 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sc3020_g6_2024-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.3 MB
Release files / sc3020_g6_2024-0.2.0.tar.gz
| Download URL | sc3020_g6_2024-0.2.0.tar.gz |
|---|---|
| Size | 2.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b43fcf743c3ab0299680e573dd1bc7b47462300d593935d481fb60b88e93284f
|
|
BLAKE2b-256 checksum How to use checksums |
0aa16329a6a3fbfd6ee986c8ef0c198bdf827808fb2f22823082ac1f06d7de1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.10
|
Release files / sc3020_g6_2024-0.2.0-py3-none-any.whl
| Download URL | sc3020_g6_2024-0.2.0-py3-none-any.whl |
|---|---|
| Size | 444.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
316b012991544c5d37a7e3ab9f75d71907b48c38f3bda35743fbf7ee903ddf66
|
|
BLAKE2b-256 checksum How to use checksums |
acabacaf39731dee134923125cb91bdba86ecf011a954a784bf754e10e1869f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.10
|
Security for sc3020-g6-2024 0.2.0
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.