Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit ab144a5

Browse files
committed
Black formatting and isort
1 parent f2ec0d6 commit ab144a5

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

examples/basic_highest_price.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ async def main():
99
print(data.daily_trade.high_price)
1010
await client.close()
1111

12-
asyncio.run(main())
12+
13+
asyncio.run(main())

nepse/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
from .core import Client
1+
from .core import Client
2+
3+
__author__ = "Samrid Pandit"
4+
__version__ = "0.3"

nepse/core.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
from nepse.security.types import SecurityResponse
21
from typing import Optional
32

43
import aiohttp
54

5+
from nepse.security.types import SecurityResponse
6+
67
from .security import SecurityClient
78

89

nepse/security/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def fetch_security_response(self, id: int):
7070
data = await (await self._session.get(f"{BASE_URL}/{id}")).json()
7171
if not data:
7272
raise NotFound()
73-
73+
7474
data = humps.decamelize(data)
7575

7676
model = SecurityResponse(**data)

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pathlib
2+
23
import setuptools
34

45
# The directory containing this file
@@ -9,7 +10,7 @@
910

1011
setuptools.setup(
1112
name="nepse-api",
12-
version="0.2.2",
13+
version="0.3",
1314
author="Samrid Pandit",
1415
author_email="[email protected]",
1516
description="This is a API wrapper for NEPSE API.",
@@ -23,7 +24,7 @@
2324
],
2425
python_requires=">3.7",
2526
keywords="api-wrapper stock",
26-
install_requires=["aiohttp", "cachetools"],
27+
install_requires=["aiohttp", "cachetools", "pyhumps"],
2728
project_urls={
2829
"Homepage": "https://github.com/Samrid-Pandit/nepse-api/",
2930
},

0 commit comments

Comments
 (0)