This release is a pre-release and may not be stable for production use.
FE507
FE507 is a simple yet very powerful, 'batteries included' intuitive package for data analysing.
How to use?
- import the
settingsmodel to configure thedata_dirwhere all of your data is located. (Notice: FE507 expects all your data to be incsvformat.)from fe507 import settings settings.data_dir = "./data/" # you csv files is stored in the directory named `data` in your current directory
- Import base classes from the package
from fe507 import Data, DataSource, RateOfReturnType, TimeFrameType
3. Enjoy.
# fe507
Basic Structures
Examples:
import plotly.express as px
import matplotlib.pyplot as plt
sp500 = Data(DataSource.SP500)
bist100 = Data(DataSource.BIST100)
bistall = Data(DataSource.BISTALL)
gold = Data(DataSource.GOLD)
btceth = Data(DataSource.BTCETH)
exchange_rates = Data(DataSource.EXCHANGE_RATES)
year_range = YearRange(from_year=2015, to_year=2022)
sp = Collection(sp500.data, name="S&P500", currency=USD).get_range(year_range.from_year,
year_range.to_year).get(on="Index")
b1 = CurrencyAwareCollection(bist100, exchange_rates, name="BIST100", currency=TRY).get_range(year_range.from_year,
year_range.to_year).get(
on="IndexUSD")
ba = CurrencyAwareCollection(bistall, exchange_rates, name="BISTALL", currency=TRY).get_range(year_range.from_year,
year_range.to_year).get(
on="IndexUSD")
gd = Collection(gold.data, name="Gold", currency=USD).get_range(year_range.from_year,
year_range.to_year).get(on='Price ($/t oz)')
btc = Collection(btceth.data, name="Bitcoin", currency=USD).get_range(year_range.from_year,
year_range.to_year).get(on='Bitcoin')
g = CollectionGroup([sp, b1, ba, gd, btc])
ror_sp_w = sp.frequency(WEEK).ror()
ror_b1_w = b1.frequency(WEEK).ror()
ror_ba_w = ba.frequency(WEEK).ror()
ror_gd_w = gd.frequency(WEEK).ror()
ror_btc_w = btc.frequency(WEEK).ror()
g_ror_d = CollectionGroup([ror_sp_w, ror_b1_w, ror_ba_w, ror_gd_w, ror_btc_w])
Metadata
Release files for fe507 0.5.2a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fe507-0.5.2a0.tar.gz | 1.2 MB | Without provenance | Details for fe507-0.5.2a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fe507-0.5.2a0-py3-none-any.whl | Python 3 | none | any | Details for fe507-0.5.2a0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / fe507-0.5.2a0.tar.gz
| Download URL | fe507-0.5.2a0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca9b7d6b4bea4cfada69c354971fe2540af6d05e31bd40a35496cece5381a633
|
|
BLAKE2b-256 checksum How to use checksums |
9d9dc5162f1c8ffb41b31cf505e3e798c1c34ffebc3d0337c529ea3569846922
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Release files / fe507-0.5.2a0-py3-none-any.whl
| Download URL | fe507-0.5.2a0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10e3ed6aa9b15759e3b43bf2c8568042ee9a962ca9ecb70c8cf12494b4d4a788
|
|
BLAKE2b-256 checksum How to use checksums |
7e39bd05666c46e92213373a134c2fb4996f07086270f707bfefac4c8fd3bbe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Security for fe507 0.5.2a0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.