semvec/pypi-packages huggingface dataset:
nepse 0.1.7
Python Wrapper for Newweb Nepse
Keywords: python,nepse,stock,nepal stock,nepal stock prices,nepse pythonb

# NEPSE
## _The Last Nepse Module You'll Ever Need_

Nepse is a realtime nepse scraper which communicates with newweb.nepalstock.com.np, to fetch and return required stats.


## Features

- Get Brokers
- Get Realtime Prices
- Make Charts and Many More



## Installation

Nepse requires [python3 and pip](http://python.org/) to install and run.

```sh
pip install nepse
```


## Plugins

Nepse is currently extended with the following plugins.
Instructions on how to use them in your own application are linked below.

| Plugin | LINK |
| ------ | ------ |
| Matplotlib | https://matplotlib.org/|
| Requests | https://pypi.org/project/requests/ |
| Pandas (For Next Update) | https://pandas.pydata.org/ |

## Usage


```py
from nepse import NEPSE
init = NEPSE()

#GET ALL REGISTERED BROKERS
brokers = init.brokers()

#GET ALL NEWS & ALERTS Published By NEPSE on Newweb
news= init.alerts()

#Check IF MARKET IS OPEN
isOpen = init.isOpen() #Returns TRUE IF market is open

#Check live price of specific scrip or get all prices 
allPrices = init.todayPrice()
cghPrice = init.todayPrice('CGH') #returns information for CGH

#CHARTS
chartHistory = init.getChartHistory('CGH') #Get History Prices for CGH
chartHistoryButFiltered = init.getChartHistory('CGH',start_date='2021-03-04',end_date='2021-03-07')

makeChart= init.createChart('CGH',theme='dark',high=False,low=False)#returns abspath of chart saved

csv = init.saveCSV('CGH',start_date='2021-02-07')#filename,start_date and  end_date are optional


indices = init.indices(sector='NEPSE Index',start_date='2021-03-04',end_date='2021-03-07')

floorsheets = init.floorsheets()

#CHECK IPO
result = init.checkIPO(scrip,boid)
{'success': False, 'message': 'Sorry, not alloted for the entered BOID. ', 'body': None}



```


## License

MIT
pyAmberElectric 0.0.2
Unofficial API for Amber Electric
Requires Python: >=3.6

# AmberElectric

Make it easier to use Amber's newer API that uses AWS Cognito for authentication.

Specify your login creds, and optionally how long to leave between refeshing the data in seconds. The default is equal to 5 minutes.

You can get the entire response from Amber with the json property, or cut out the middleman and get specific values like currentPrice. Data is stored locally so feel free to grab the properties without hammering Amber's servers or being stuck with stale data.

# How-to

```python
from pyAmberElectric import pyAmberElectric
Amber = pyAmberElectric(username='yourEmail', password='yourPassword', updateInterval=600)

#array of your meter prices
Amber.currentPrice

#the complete raw json data
Amber.json

print("Prices are currently ", Amber.currentValue)
```

# The Deets

## Renewing auth and data
The authentication token will be automatically renewed when needed, normally lasting an hour. You can call auth() to manually renew if required.

If needed, all known data is requested at once. When the local data is older than the maxAge, the data is refreshed. You can also call update() to manually request new data. Amber's data doesn't change more often than every 5 minutes at most so no need to hammer it.

## Avaliable Props

#### json
Returns the full json object returned by Amber. Contains all info avaliable in the app/website.

#### currentPrice
Returns an array of your current prices in cents.

#### currentRenewable
Returns an array of the current percentage of renewables in the grid.

#### currentValue
Returns an array of the current qualative value of the price. Can be 'BAD', 'NEUTRAL' or 'GOOD'.

#### periodCost
Returns the total cost for the last 30 days in cents.

#### periodUsage
Returns the total usage for the last 30 days in Kwh.

#### periodRenewable
Returns the average percentage of renewables in the grid for the last 30 days.

## Secret Methods
You shouldn't need to call these methods but they are there if you really want/need them.

#### auth()
Renew the authentication token.

#### update()
Refresh the data from Amber.
SQLFileExecutor 0.2.9
SQLファイルからSQLをまとめて実行する
Requires Python: ~=3.9

# libpykaライブラリ

##libpykaライセンス
このソフトウェアはMITライセンスを適用している。
This software is released under the MIT License, see LICENSE.txt.
（このソフトウェアは、MITライセンスのもとで公開されている。LICENSE.txtを見よ。）

## libpykaの概要
Pythonの一般的ユーティリティライブラリ。
DBや文字列操作の便利な関数などが利用できる。
libpykaライブラリはその中に複数のパッケージで構成されている。
DB関連はdbパッケージ。
文字列や一般的なモジュールはutilsパッケージ。

## libpykaのパッケージの説明
### dbパッケージ
DB関連のパッケージでDBは主にPostgreSQLを使用する。
postgresモジュールでPostgreSQL関連の便利な関数を指定できる。

### utilsパッケージ
主に文字列操作や基本的な便利な関数が格納されたモジュール。