This is a API wrapper for NEPSE API.
Project description
NEPSE API Wrapper
This python module fetches the data from Nepali Stock Site and provides them in a pythonic and usable way.
About
This is a API wrapper for NEPSE API. This project was inspired from PyPi Nepse.
How to use?
You can use this by package from Nepse API PyPi
pip install nepse-api
Why use this?
How is this better than PyPi Nepse?
- It is asynchronous.
- Data can be taken as attributes rather than from dict.
- Data is fetched from the API rather than scraping the site.
- Data is cached
APIs used
The APIs that I used to create this API wrapper is:
How to use?
import asyncio
from nepse import Client
async def main():
# Initializes the client
client = Client()
# Gets the data
data = await client.get_company(symbol="UPPER")
# Prints the highest price for that company today
print(data.daily_trade.high_price)
# Properly closes the session
await client.close()
# Run the function
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Documentation?
Documentation is still in progress!
Want To Contribute?
You can send a pull request or open an issue to contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nepse-api-0.2.1.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file nepse-api-0.2.1.tar.gz
.
File metadata
- Download URL: nepse-api-0.2.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb046ad99fe99dababc16a951ae62718aff5490212b7c9aeb0a03c2508700e47 |
|
MD5 | 99fa76782bc6f7b4fb52dc521e171fbb |
|
BLAKE2b-256 | 1c3893ecfa624fc42df16a49e2ea64ba569db54946392543ce12238f712d0d31 |
File details
Details for the file nepse_api-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: nepse_api-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cb08974aa50b668e00d28821ad900dc4e0ede05f2a9cab3e4cae37f1b0ace1 |
|
MD5 | 4063c6226bc71cc2f7b5e2be8fd4a76d |
|
BLAKE2b-256 | 8dbfbd803f422210b3736be495ef0486d6776d041a23ccb85f6f4dcfcc93e716 |