Skip to content

Commit e345b1a

Browse files
committed
deploy: mongo and API logging now optional
1 parent e71472c commit e345b1a

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

README.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Tamga [![PyPI Downloads](https://static.pepy.tech/badge/tamga)](https://pepy.tech/projects/tamga)
22

3-
A modern, logging utility for Python with multiple output formats and colorful console output.
3+
A modern, logging utility for Python with multiple output formats and colorful console output.
44

55
[![Installation](https://belg-api.vercel.app/badge/installation/pip3%20install%20tamga/neutral/dark)](https://pypi.org/project/tamga/)
66

7-
tam·ga / noun
7+
tam·ga / noun
88
An ancient Turkic symbol or seal used for marking ownership, identity, or lineage.
99

1010
<img alt="Terminal" src="https://github.com/DogukanUrker/Tamga/blob/main/Images/terminal.png?raw=true" />
1111

12-
1312
## Features
1413

1514
- 🎨 Colorful console output using Tailwind CSS color palette
@@ -24,9 +23,30 @@ An ancient Turkic symbol or seal used for marking ownership, identity, or lineag
2423

2524
## Installation
2625

27-
```bash
28-
pip install tamga
29-
```
26+
To install the `tamga` package, you can use the following commands based on your requirements:
27+
28+
- Basic installation:
29+
30+
```bash
31+
pip install tamga
32+
```
33+
34+
- With API logging support:
35+
36+
```bash
37+
pip install tamga[api]
38+
```
39+
40+
- With MongoDB integration:
41+
42+
```bash
43+
pip install tamga[mongo]
44+
```
45+
46+
- Full installation with all features:
47+
```bash
48+
pip install tamga[full]
49+
```
3050

3151
## Quick Start
3252

@@ -126,4 +146,4 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
126146

127147
- Doğukan Ürker
128148
- Email: dogukanurker@icloud.com
129-
- GitHub: [@dogukanurker](https://github.com/dogukanurker)
149+
- GitHub: [@dogukanurker](https://github.com/dogukanurker)

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "tamga"
3-
version = "0.1.12"
3+
version = "0.1.13"
44
authors = [{ name = "Doğukan Ürker", email = "dogukanurker@icloud.com" }]
55
description = "A modern, async-capable logging utility with multiple output formats and colorful console output"
66
readme = "README.md"
@@ -31,14 +31,21 @@ classifiers = [
3131
"Topic :: System :: Logging",
3232
"Topic :: Software Development :: Libraries :: Python Modules",
3333
]
34-
dependencies = ["motor<3.6", "pymongo<4.9", "requests>=2.31.0"]
34+
dependencies = []
35+
36+
[project.optional-dependencies]
37+
mongo = ["pymongo<4.9", "motor<3.6"]
38+
api = ["requests>=2.31.0"]
39+
full = ["pymongo<4.9", "motor<3.6", "requests>=2.31.0"]
3540

3641
[project.urls]
3742
Homepage = "https://tamga.vercel.app/"
3843
Documentation = "https://tamga.vercel.app/"
3944
Source = "https://github.com/dogukanurker/tamga/"
4045

41-
4246
[build-system]
4347
requires = ["setuptools>=61.0"]
4448
build-backend = "setuptools.build_meta"
49+
50+
[tool.setuptools]
51+
packages = ["tamga"]

0 commit comments

Comments
 (0)