Skip to content

Commit f9586b3

Browse files
Update README with badges, centered logo, emojis, and download instructions
1 parent f74d551 commit f9586b3

File tree

3 files changed

+204
-5
lines changed

3 files changed

+204
-5
lines changed

.gitignore

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110+
.pdm.toml
111+
.pdm-python
112+
.pdm-build/
113+
114+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115+
__pypackages__/
116+
117+
# Celery stuff
118+
celerybeat-schedule
119+
celerybeat.pid
120+
121+
# SageMath parsed files
122+
*.sage.py
123+
124+
# Environments
125+
.env
126+
.venv
127+
env/
128+
venv/
129+
ENV/
130+
env.bak/
131+
venv.bak/
132+
133+
# Spyder project settings
134+
.spyderproject
135+
.spyproject
136+
137+
# Rope project settings
138+
.ropeproject
139+
140+
# mkdocs documentation
141+
/site
142+
143+
# mypy
144+
.mypy_cache/
145+
.dmypy.json
146+
dmypy.json
147+
148+
# Pyre type checker
149+
.pyre/
150+
151+
# pytype static type analyzer
152+
.pytype/
153+
154+
# Cython debug symbols
155+
cython_debug/
156+
157+
# PyCharm
158+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160+
# and can be added to the global gitignore or merged into this file. For a more nuclear
161+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162+
#.idea/

README.md

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,57 @@
11
# JsonDB Project
22

3+
<p align="center">
4+
<img src="./assets/logo.png" alt="Logo" height="128px">
5+
</p>
6+
7+
<p align="center">
8+
<img src="https://img.shields.io/badge/python-%2314354C.svg?&style=for-the-badge&logo=python&logoColor=white"/>
9+
<img src="https://img.shields.io/badge/json-%23000000.svg?&style=for-the-badge&logo=json&logoColor=white"/>
10+
</p>
11+
312
The JsonDB Project provides a lightweight, file-based database system, designed to make data storage and retrieval simple and intuitive. Built in Python, it leverages the versatility of JSON for data manipulation, making it an ideal solution for small projects, prototypes, or for educational purposes where a full-scale database system isn't required.
413

5-
## Features
14+
## 🚀 Features
615

716
- **Simple CRUD Operations**: Easily create, read, update, and delete records with straightforward Python methods.
817
- **Lightweight and Portable**: No need for complex database setups. Your data is stored in a single JSON file.
918
- **Flexible Data Models**: Store anything from simple key-value pairs to complex nested structures.
1019
- **Search Functionality**: Includes basic search capabilities to filter through data based on keys or patterns.
1120
- **Minimal Setup**: With just a few lines of code, integrate JsonDB into any Python project.
1221

13-
## Getting Started
22+
## 🏁 Getting Started
1423

1524
### Prerequisites
1625

1726
- Python 3.6 or newer
1827

1928
### Installation
2029

21-
To use the JsonDB in your project, you simply need to include the `jsonDB.py` file in your project directory. There's no need to install any packages or run any setup scripts. Just make sure that `jsonDB.py` is in the same folder as the Python script where you intend to use the database.
30+
You can download the `jsonDB.py` file directly for your platform using the following commands:
31+
32+
#### Windows
33+
34+
**Option 1: Using PowerShell (no extra installations needed)**:
35+
Open PowerShell and run:
36+
37+
```powershell
38+
Invoke-WebRequest -Uri https://raw.githubusercontent.com/DavyJonesCodes/json-db-python/master/jsonDB.py -OutFile jsonDB.py
39+
```
40+
41+
**Option 2: Using `wget`**:
42+
If you have `wget` installed, you can use the following command in Command Prompt or PowerShell:
43+
44+
```cmd
45+
wget -O jsonDB.py https://raw.githubusercontent.com/DavyJonesCodes/json-db-python/master/jsonDB.py
46+
```
47+
48+
#### Linux and macOS
49+
50+
Open your terminal and run:
51+
52+
```bash
53+
wget -O jsonDB.py https://raw.githubusercontent.com/DavyJonesCodes/json-db-python/master/jsonDB.py
54+
```
2255

2356
### Usage
2457

@@ -47,14 +80,18 @@ del db['user2']
4780
print(db.keys('user.*')) # Output: ['user1']
4881
```
4982

50-
## Project Structure
83+
## 📁 Project Structure
5184

5285
- `jsonDb.py`: The core database module, implementing CRUD operations and data storage in JSON format.
5386
- `main.py`: An example script demonstrating how to use the JsonDB for basic data management tasks.
5487
- `data.json`: A sample JSON file used by `main.py` to illustrate data storage and retrieval.
5588

56-
## Contributing
89+
## 🤝 Contributing
5790

5891
Contributions to the JsonDB Project are welcome! Whether it's reporting a bug, discussing potential improvements, or contributing code, we value your input.
5992

6093
Please feel free to submit issues and pull requests.
94+
95+
## 📜 License
96+
97+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

assets/logo.png

25.9 KB
Loading

0 commit comments

Comments
 (0)