crxsnake 1.4.5__tar.gz → 1.4.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: crxsnake
3
- Version: 1.4.5
3
+ Version: 1.4.7
4
4
  Home-page: https://discord.gg/EEp67FWQDP
5
5
  Author: CRX-DEV
6
6
  Author-email: cherniq66@gmail.com
@@ -9,11 +9,11 @@ Project-URL: Repository, https://github.com/cyrax-dev/crxsnake
9
9
  Project-URL: Discord, https://discord.gg/EEp67FWQDP
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
- Requires-Dist: setuptools==75.8.0
13
- Requires-Dist: tortoise-orm==0.24.0
14
- Requires-Dist: disnake==2.10.1
15
- Requires-Dist: aiofiles==23.2.1
16
- Requires-Dist: loguru==0.7.2
12
+ Requires-Dist: setuptools
13
+ Requires-Dist: tortoise-orm
14
+ Requires-Dist: disnake
15
+ Requires-Dist: aiofiles
16
+ Requires-Dist: loguru
17
17
  Dynamic: author
18
18
  Dynamic: author-email
19
19
  Dynamic: description
@@ -3,13 +3,18 @@ from tortoise import Tortoise
3
3
 
4
4
 
5
5
  class Database:
6
- DB_URL = "sqlite://settings/database/database.db"
7
- DB_MODEL = {"models": ["src.utils"]}
8
6
 
9
- @staticmethod
10
- async def db_connect() -> None:
7
+ def __init__(self, db_url: str = "sqlite://settings/database/database.db"):
8
+ self.db_url = db_url
9
+
10
+ async def db_connect(self) -> None:
11
11
  try:
12
- await Tortoise.init(db_url=Database.DB_URL, modules=Database.DB_MODEL)
12
+ await Tortoise.init(
13
+ db_url=self.db_url,
14
+ modules={
15
+ "models": ["src.utils"]
16
+ }
17
+ )
13
18
  await Tortoise.generate_schemas()
14
19
  log.info("[Database] SqLite connected")
15
20
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: crxsnake
3
- Version: 1.4.5
3
+ Version: 1.4.7
4
4
  Home-page: https://discord.gg/EEp67FWQDP
5
5
  Author: CRX-DEV
6
6
  Author-email: cherniq66@gmail.com
@@ -9,11 +9,11 @@ Project-URL: Repository, https://github.com/cyrax-dev/crxsnake
9
9
  Project-URL: Discord, https://discord.gg/EEp67FWQDP
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
- Requires-Dist: setuptools==75.8.0
13
- Requires-Dist: tortoise-orm==0.24.0
14
- Requires-Dist: disnake==2.10.1
15
- Requires-Dist: aiofiles==23.2.1
16
- Requires-Dist: loguru==0.7.2
12
+ Requires-Dist: setuptools
13
+ Requires-Dist: tortoise-orm
14
+ Requires-Dist: disnake
15
+ Requires-Dist: aiofiles
16
+ Requires-Dist: loguru
17
17
  Dynamic: author
18
18
  Dynamic: author-email
19
19
  Dynamic: description
@@ -0,0 +1,5 @@
1
+ setuptools
2
+ tortoise-orm
3
+ disnake
4
+ aiofiles
5
+ loguru
@@ -4,11 +4,11 @@ from pathlib import Path
4
4
  this_directory = Path(__file__).parent
5
5
  long_description = (this_directory / "README.md").read_text()
6
6
  requires = [
7
- "setuptools==75.8.0",
8
- "tortoise-orm==0.24.0",
9
- "disnake==2.10.1",
10
- "aiofiles==23.2.1",
11
- "loguru==0.7.2",
7
+ "setuptools",
8
+ "tortoise-orm",
9
+ "disnake",
10
+ "aiofiles",
11
+ "loguru",
12
12
  ]
13
13
  urls = {
14
14
  "Repository": "https://github.com/cyrax-dev/crxsnake",
@@ -17,7 +17,7 @@ urls = {
17
17
 
18
18
  setup(
19
19
  name="crxsnake",
20
- version="1.4.5",
20
+ version="1.4.7",
21
21
  long_description=long_description,
22
22
  long_description_content_type="text/markdown",
23
23
  author="CRX-DEV",
@@ -1,5 +0,0 @@
1
- setuptools==75.8.0
2
- tortoise-orm==0.24.0
3
- disnake==2.10.1
4
- aiofiles==23.2.1
5
- loguru==0.7.2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes