Skip to content

Commit

Permalink
- Version 2.0.0
Browse files Browse the repository at this point in the history
- Updated README
- Added class init documentation
  • Loading branch information
BennyThadikaran committed Nov 3, 2023
1 parent a7f3ebd commit 46f9904
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Python version: >= 3.10
## Install with PIP

```
pip install bse
pip install -U bse
```

## Documentation
Expand All @@ -23,14 +23,12 @@ Using with statement
```python
from bse import BSE

with BSE() as bse:
scripCode = bse.getScripCode('tcs') # 532540 bse scrip code
with BSE(download_folder='./') as bse:
scripCode = bse.getScripCode('tcs') # 532540 bse scrip code

bse.getScripName('532540') # TCS
data = bse.actions(scripcode=scripCode)

data = bse.corporateActions(scripCode)

oclc = bse.quote(scripCode) # Open, High, Low, LTP
ohlc = bse.quote(scripCode) # Open, High, Low, LTP
```

or
Expand All @@ -39,13 +37,13 @@ or
from bse import BSE
from bse.constants import INDEX

bse = BSE()
bse = BSE(download_folder='./')

code = bse.getScripCode('tcs') # 532540 bse scrip code
code = bse.getScripCode('tcs') # 532540 bse scrip code

gainers = bse.gainers(by='index', name=INDEX.BSE500)

bse.exit() # close the request session
bse.exit() # close the request session
```

## Sample Responses
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
project = 'bse'
copyright = '2023, Benny Thadikaran'
author = 'Benny Thadikaran'
release = '1.0.0'
release = '2.0.0'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 2 additions & 0 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Example
API
___

.. autoclass:: bse.BSE

General Methods
---------------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "bse"
version = "1.0.0"
version = "2.0.0"
authors = [
{ name="Benny Thadikaran" },
]
Expand Down

0 comments on commit 46f9904

Please sign in to comment.