semvec/pypi-packages huggingface dataset:
cool-ssg-lmpham1 1.0.0
A CLI static site generator written in Python
Requires Python: >=3.6


# cool_ssg_generator
A simple SSG generator made with Python.
Current version is 0.1.0

### Dependencies
- [Python 3.8.5](https://www.python.org/downloads/) (or higher)

***

### Installation
Make sure you have installed Python version 3.8.5 or above. No other dependencies is currently needed.

To clone this project, use:
```console
git clone https://github.com/lmpham1/cool_ssg_generator.git
```
Then, you'll probably want to navigate to the project's root folder:
```console
cd cool_ssg_generator
```
---

### Basic Usage
Navigate to the project folder (if you haven't done so already):
```console
cd cool_ssg_generator
```
Generate a website from a file or folder:
```console
python cool_ssg --input <INPUT_FILE_OR_FOLDER>
```
Default output folder is `./dist/`, to specify a custom output folder:
```console
python cool_ssg --input <INPUT_FILE_OR_FOLDER> --output <OUTPUT_FOLDER>
```
CSS can be used via the `--stylesheet` flag:
```console
python cool_ssg --input <INPUT_FILE_OR_FOLDER> --stylesheet <STYLESHEET_URL>
```
For more usage, please refer to:
```console
python cool_ssg -h
```
---

### Cool Features
Wanna know what make the `cool_ssg_generator` so cool? Aside from the totally-intentional doubled 'generator' in the name, it offers the following awesome features:
* Support multiple stylesheets! Simply use the `-s` or `--stylesheet` flags and separate each stylesheet link with space `' '`, i.e.:
```console
python cool_ssg -i index.txt -s sheet1.css sheet2.css sheet3.css
```
* Markdown (.md files) support for **bold** (`**example**` or `__example__`), *italics* (`*example*` or `_example_`), and [links](https://github.com/lmpham1/cool_ssg_generator) (`[Example](www.example.com)`)
* Language for the output HTML documents can be configured with `-l` or `--lang` flag (default is `en-CA`):
```
python cool_ssg -i test.txt -l en-UK
```
**Note**: No validation for `--lang`/`-l` option is implemented yet. See issue [#14](https://github.com/lmpham1/cool_ssg_generator/issues/14) for more information
* You can save your command-line options in a config file! No need to manually type all the options everytime, just use `--config`/`-c` flag with a json file:
```
python cool_ssg -c config.json
```
**Note**: Using `--config`/`-c` option will ignore/override other options

---

### License
[MIT](LICENSE)
EliteD 1.1
A package to make database usage easier
Requires Python: >=3.6

# EliteD
EliteD is a package to make database usage easier!
Create database easily and read and update them.


### Installing
To install the package you just need to execute the following in your command line:

    pip3 install EliteD


## Using the package
This is how you create and setup a Database
 ```py
 import EliteD #importing the package
database = EliteD.create_database(name="user.db", path="/path/to/db")
database.create_table(name="test", columns=[{"type": int, "name": "test"}]) 
```
The second line would create the database "user.db" at the given path
The last line creates the table "test" in the database with the column "test" with integer as values. You can add as many columns as you want

If you already have a database, you can open the database like this: 
```py
import EliteD #import the module
database = EliteD.Database("/path/to/db") #Opens the database
```
If you need to delete a created table, you can do it like this:
```py
import EliteD
database = EliteD.Database(path="/path/to/db")
database.delete_table("name of the table")
```

### Writing values in a database
To add new values, you can use the `insert_value` method:
```py
import EliteD
database = EliteD.Database(path="/path/to/db")
database.insert_value(table="test", values=("001", "bread"))
```
This would insert the values `001` and `bread` in the table `test`.

### Reading, deleting and changing values of a database
To read a value of a database, you can use the `read_value` method:
```py
import EliteD
database = EliteD.Database(path="/path/to/db")
read = database.read_value(table="test", values=["test"], conditions={"test": 0})
print(read)
```
`values` is the row you want to read from the table. You can give multiple values. To read out all values, you can use the `EliteD.AllValues()` class. Conditions can be specified when you only want to read out the values when a row (`test` in this case)  has the specified value (`0` in this case).

To delete database values you can use the `delete_value` method:
```py
import EliteD
database = EliteD.Database(path="/path/to/db")
database.delete_value(table="test", row="trees", new_value=2, conditions={"floof": 1})
```
This would delete every value of the row `trees` from the table `test` if the value of `floof` is `1`

To change database values, you can use `update_value` method:
```py
import EliteD
database = EliteD.Database(path="/path/to/db")
database.update_value(table="test", row="roaw", new_value=2, conditions={"roawaaa": 1})
```
This would change every value of the row `roaw` from the table `test` to `2` if the value of `roawaaa` is `1`