bvmac-data 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bvmac/__init__.py +66 -0
- bvmac/cli.py +30 -0
- bvmac/config.py +9 -0
- bvmac/database.py +213 -0
- bvmac/download.py +137 -0
- bvmac/extract.py +923 -0
- bvmac/pipeline.py +114 -0
- bvmac_data-0.1.0.dist-info/METADATA +216 -0
- bvmac_data-0.1.0.dist-info/RECORD +13 -0
- bvmac_data-0.1.0.dist-info/WHEEL +5 -0
- bvmac_data-0.1.0.dist-info/entry_points.txt +2 -0
- bvmac_data-0.1.0.dist-info/licenses/LICENSE +201 -0
- bvmac_data-0.1.0.dist-info/top_level.txt +1 -0
bvmac/pipeline.py
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"""Ingest local or newly downloaded BVMAC bulletin PDFs into SQLite."""
|
|
2
|
+
import re
|
|
3
|
+
import warnings
|
|
4
|
+
from datetime import date, timedelta
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
import pdfplumber
|
|
8
|
+
|
|
9
|
+
from . import database, download, extract
|
|
10
|
+
from .config import DEFAULT_DB, DEFAULT_FOLDER
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def process_folder(folder=DEFAULT_FOLDER, db_path=DEFAULT_DB, force=False):
|
|
14
|
+
paths = sorted(Path(folder).glob("*.pdf"))
|
|
15
|
+
print(f"{len(paths)} PDF(s) found in {folder}")
|
|
16
|
+
con = database.connect(db_path)
|
|
17
|
+
summary = {"processed": 0, "already_in_database": 0, "failed": 0}
|
|
18
|
+
for path in paths:
|
|
19
|
+
if not force and any(
|
|
20
|
+
con.execute(f'SELECT 1 FROM "{table}" WHERE source_file = ? LIMIT 1', (path.name,)).fetchone()
|
|
21
|
+
for table in database.DATASETS
|
|
22
|
+
):
|
|
23
|
+
summary["already_in_database"] += 1
|
|
24
|
+
print(f"ALREADY IN DATABASE {path.name}")
|
|
25
|
+
continue
|
|
26
|
+
match = re.search(r"(\d{4})(\d{2})(\d{2})", path.stem)
|
|
27
|
+
fallback = "-".join(match.groups()) if match else None
|
|
28
|
+
if fallback is None:
|
|
29
|
+
legacy = re.search(r"(\d{2})-(\d{2})-(\d{4})", path.stem)
|
|
30
|
+
if legacy:
|
|
31
|
+
day_part, month_part, year_part = legacy.groups()
|
|
32
|
+
fallback = f"{year_part}-{month_part}-{day_part}"
|
|
33
|
+
try:
|
|
34
|
+
with pdfplumber.open(path) as pdf:
|
|
35
|
+
day = extract.bulletin_date(pdf, path.name)
|
|
36
|
+
bulletin_text = "\n".join(extract._page_text(page) for page in pdf.pages)
|
|
37
|
+
extraction_warnings = []
|
|
38
|
+
datasets = extract.extract_bulletin(pdf, errors=extraction_warnings)
|
|
39
|
+
for warning in extraction_warnings:
|
|
40
|
+
print(f"WARNING {path.name}: extractor {warning}")
|
|
41
|
+
bulletin_compact = extract._compact_text(bulletin_text)
|
|
42
|
+
if fallback and fallback != day:
|
|
43
|
+
print(f"WARNING {path.name}: filename date {fallback} differs from bulletin date {day}; using bulletin date")
|
|
44
|
+
if len(datasets["equities"]) < 3:
|
|
45
|
+
print(f"WARNING {path.name}: only {len(datasets['equities'])} equity rows")
|
|
46
|
+
if not any(not frame.empty for frame in datasets.values()):
|
|
47
|
+
print(f"WARNING {path.name}: no usable dataset rows; skipped")
|
|
48
|
+
continue
|
|
49
|
+
for dataset_name, frame in datasets.items():
|
|
50
|
+
if "isin" not in frame:
|
|
51
|
+
continue
|
|
52
|
+
invalid = sorted({value for value in frame["isin"].dropna()
|
|
53
|
+
if not extract.isin_checksum_valid(value)})
|
|
54
|
+
if invalid:
|
|
55
|
+
print(f"WARNING {path.name}: {dataset_name} contains {len(invalid)} ISIN(s) with invalid checksum: "
|
|
56
|
+
+ ", ".join(invalid[:10]))
|
|
57
|
+
if not force:
|
|
58
|
+
found = con.execute("SELECT COUNT(*) FROM equities WHERE date = ?", (day,)).fetchone()[0]
|
|
59
|
+
if found:
|
|
60
|
+
continue
|
|
61
|
+
database.save_bulletin(con, datasets, day, path.name)
|
|
62
|
+
summary["processed"] += 1
|
|
63
|
+
counts = ", ".join(f"{len(frame)} {key}" for key, frame in datasets.items())
|
|
64
|
+
print(f"OK {path.name} -> {day}: {counts}")
|
|
65
|
+
if len(datasets["bond_quotes"]) == 0:
|
|
66
|
+
print(f"WARNING {path.name}: no bond quote rows extracted; check source table layout")
|
|
67
|
+
for asset_class, labels in {
|
|
68
|
+
"sovereign": ("OBLIGATIONSDESETATS", "OBLIGATIONSETATS", "OBLIGATIONDETATS"),
|
|
69
|
+
"regional": ("OBLIGATIONSREGIONALES",),
|
|
70
|
+
"corporate": ("OBLIGATIONSPRIVEES",),
|
|
71
|
+
}.items():
|
|
72
|
+
if any(label in bulletin_compact for label in labels) and not (datasets["bond_quotes"]["asset_class"] == asset_class).any():
|
|
73
|
+
print(f"WARNING {path.name}: {asset_class} bond quote table was not extracted")
|
|
74
|
+
if "BVMAC-AS" in bulletin_text and datasets["index"].empty:
|
|
75
|
+
print(f"WARNING {path.name}: BVMAC-AS appears chart-only and was not extracted")
|
|
76
|
+
if "CAPITALISATIONBOURSIERE" in bulletin_compact and datasets["issuer_snapshots"].empty:
|
|
77
|
+
print(f"WARNING {path.name}: issuer capitalization table was not extracted")
|
|
78
|
+
listed = re.search(r"(\d+)\s+LIGNES?\s+OBLIGATAIRES", bulletin_text)
|
|
79
|
+
if listed and len(datasets["bond_issues"]) < int(listed.group(1)):
|
|
80
|
+
print(f"WARNING {path.name}: bulletin lists {listed.group(1)} bond lines, "
|
|
81
|
+
f"but {len(datasets['bond_issues'])} issue rows were extracted")
|
|
82
|
+
except Exception as exc:
|
|
83
|
+
summary["failed"] += 1
|
|
84
|
+
con.rollback()
|
|
85
|
+
print(f"ERROR {path.name}: {exc}")
|
|
86
|
+
for table in database.DATASETS:
|
|
87
|
+
n = con.execute(f'SELECT COUNT(*) FROM "{table}"').fetchone()[0]
|
|
88
|
+
print(f"Database holds {n} {table} rows")
|
|
89
|
+
con.close()
|
|
90
|
+
return summary
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def update(start=None, end=None, folder=DEFAULT_FOLDER, db_path=DEFAULT_DB, force=False):
|
|
94
|
+
if start is None:
|
|
95
|
+
if not Path(db_path).expanduser().is_file():
|
|
96
|
+
raise ValueError("Database is empty. Supply --start YYYY-MM-DD for the initial history.")
|
|
97
|
+
con = database.connect(db_path)
|
|
98
|
+
last = con.execute("SELECT MAX(date) FROM equities").fetchone()[0]
|
|
99
|
+
con.close()
|
|
100
|
+
if last is None:
|
|
101
|
+
raise ValueError("Database is empty. Supply --start YYYY-MM-DD for the initial history.")
|
|
102
|
+
start = date.fromisoformat(last) + timedelta(days=1)
|
|
103
|
+
end = end or date.today()
|
|
104
|
+
start_day, end_day = download.to_date(start), download.to_date(end)
|
|
105
|
+
if start_day > end_day:
|
|
106
|
+
raise ValueError("start must be on or before end")
|
|
107
|
+
downloads = download.download_range(start_day, end_day, folder, force=force)
|
|
108
|
+
processed = process_folder(folder, db_path, force)
|
|
109
|
+
if downloads["errors"]:
|
|
110
|
+
warnings.warn(f"{len(downloads['errors'])} bulletin download(s) failed; the requested history may be incomplete")
|
|
111
|
+
if processed["failed"]:
|
|
112
|
+
warnings.warn(f"{processed['failed']} bulletin file(s) could not be processed; returned data may be incomplete")
|
|
113
|
+
return {"downloads": downloads, "processing": processed}
|
|
114
|
+
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bvmac-data
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python data access for BVMAC official market bulletins
|
|
5
|
+
Author: Kadjah Ngango
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/withlovekadjah/bvmac-data
|
|
8
|
+
Project-URL: Repository, https://github.com/withlovekadjah/bvmac-data
|
|
9
|
+
Project-URL: Issues, https://github.com/withlovekadjah/bvmac-data/issues
|
|
10
|
+
Keywords: BVMAC,Cameroon,Central Africa,market data,bonds,stocks
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: pandas>=1.5
|
|
23
|
+
Requires-Dist: pdfplumber>=0.9
|
|
24
|
+
Requires-Dist: requests>=2.28
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# BVMAC Data
|
|
28
|
+
|
|
29
|
+
An independent Python package for reading market data from the BVMAC's daily
|
|
30
|
+
*Bulletin Officiel de la Cote*. It does not depend on the BRVM package.
|
|
31
|
+
|
|
32
|
+
The package downloads bulletin PDFs, stores extracted observations in a local
|
|
33
|
+
SQLite file, and returns pandas DataFrames. The archive has two observed
|
|
34
|
+
filename patterns: older bulletins use `BOC-BVMAC-DD-MM-YYYY.pdf`; later files
|
|
35
|
+
use `BOC-YYYYMMDD.pdf`. The downloader tries the appropriate pattern and falls
|
|
36
|
+
back to the other one.
|
|
37
|
+
|
|
38
|
+
## Install
|
|
39
|
+
|
|
40
|
+
After release to PyPI, install with one command:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install bvmac-data
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The package is not published on PyPI yet. To install from a downloaded or
|
|
47
|
+
cloned source folder, open a terminal in its root and run
|
|
48
|
+
`python -m pip install .`. Python 3.10 or newer is required. A GitHub release
|
|
49
|
+
will provide a reviewed source download; PyPI installation will work only
|
|
50
|
+
after a separate PyPI release.
|
|
51
|
+
|
|
52
|
+
## License and reuse
|
|
53
|
+
|
|
54
|
+
This project is licensed under the Apache License, Version 2.0. See
|
|
55
|
+
[LICENSE](LICENSE). Copyright © 2026 Kadjah Ngango.
|
|
56
|
+
|
|
57
|
+
You may use, modify, and redistribute this package under Apache 2.0's terms.
|
|
58
|
+
You retain copyright to your original work; contributors retain copyright to
|
|
59
|
+
their own contributions, which are offered under Apache 2.0 unless a separate
|
|
60
|
+
agreement applies.
|
|
61
|
+
|
|
62
|
+
This license covers the package code. It does not grant permission to
|
|
63
|
+
redistribute BVMAC bulletin PDFs or other third-party content.
|
|
64
|
+
|
|
65
|
+
## Read data already stored on your computer
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
import bvmac
|
|
69
|
+
|
|
70
|
+
prices = bvmac.load_prices("SOCAP")
|
|
71
|
+
shares = bvmac.load_equities("SOCAP")
|
|
72
|
+
index = bvmac.load_index()
|
|
73
|
+
bonds = bvmac.load_bonds()
|
|
74
|
+
bond_terms = bvmac.load_bond_issues()
|
|
75
|
+
funds = bvmac.load_funds()
|
|
76
|
+
issuer_facts = bvmac.load_issuer_snapshots()
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
These functions read directly from the package's local SQLite database. They
|
|
80
|
+
do not download bulletins or reprocess PDFs. The package finds its standard
|
|
81
|
+
database automatically, so you do not need to enter its file path. If the
|
|
82
|
+
database is missing, the loader reports that clearly instead of creating an
|
|
83
|
+
empty one. Each function also accepts optional `start` and `end` dates.
|
|
84
|
+
|
|
85
|
+
## Fill or refresh the local database
|
|
86
|
+
|
|
87
|
+
Downloading and processing bulletins is a separate step. Run it when you want
|
|
88
|
+
to build the local database or add newer dates:
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
import bvmac
|
|
92
|
+
|
|
93
|
+
bvmac.download_data(start="2025-01-01")
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
This downloads available PDFs, extracts their supported sections, and saves
|
|
97
|
+
the results in the local database. It can take time for a large date range.
|
|
98
|
+
After it finishes, use the `load_*()` functions above to read the saved data
|
|
99
|
+
without downloading again. You can also use `history()` as a convenience when
|
|
100
|
+
you specifically want it to check for newer bulletins and then return one
|
|
101
|
+
share's prices:
|
|
102
|
+
|
|
103
|
+
```python
|
|
104
|
+
prices = bvmac.history("SOCAP", start="2025-01-01")
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Use an exchange Mnemo (ticker) or ISIN to identify an instrument.
|
|
108
|
+
|
|
109
|
+
The package keeps its files outside your current project folder:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
Windows: %LOCALAPPDATA%\bvmac-data\
|
|
113
|
+
Other systems: ~/bvmac-data/
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Inside that folder, downloaded PDFs go in `bulletins/` and the database is
|
|
117
|
+
`bvmac.db`. You normally do not need to find or manage those files yourself.
|
|
118
|
+
|
|
119
|
+
## Read one bulletin PDF directly
|
|
120
|
+
|
|
121
|
+
```python
|
|
122
|
+
import bvmac
|
|
123
|
+
|
|
124
|
+
data = bvmac.read_bulletin(r"C:\\Users\\you\\Downloads\\BOC-20261118.pdf")
|
|
125
|
+
shares = data["equities"]
|
|
126
|
+
bonds = data["bond_quotes"]
|
|
127
|
+
funds = data["funds"]
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
`read_bulletin()` reads that PDF directly and returns pandas DataFrames. It
|
|
131
|
+
does not download anything or use the local database. Advanced users can pass
|
|
132
|
+
a custom `db_path` to any database loader; otherwise, the standard local cache
|
|
133
|
+
is used automatically. Results are pandas DataFrames, with dates returned as
|
|
134
|
+
pandas dates.
|
|
135
|
+
|
|
136
|
+
## What the columns mean
|
|
137
|
+
|
|
138
|
+
### Shares
|
|
139
|
+
|
|
140
|
+
`mnemo` is the exchange's short ticker; `isin` is the security's international
|
|
141
|
+
identifier. `isin_valid` reports whether the printed ISIN passes its checksum;
|
|
142
|
+
invalid printed identifiers are retained with a warning instead of being
|
|
143
|
+
silently treated as valid. `open` and `close` are the session's opening and closing prices in
|
|
144
|
+
CFA francs. `volume` is the number of shares traded, `value_fcfa` is the total
|
|
145
|
+
value traded, and `transactions` is the number of trades. `bid_volume` and
|
|
146
|
+
`ask_volume` are the number of shares requested to buy and offered to sell.
|
|
147
|
+
`change_pct` is the bulletin's daily percentage change. `year_high` and
|
|
148
|
+
`year_low` are the bulletin's high and low prices since January, not the day's
|
|
149
|
+
high and low. The daily bulletin does not provide daily high/low prices.
|
|
150
|
+
|
|
151
|
+
`load_prices()` returns Open, Close, Volume, Value, Change %, Year High, and
|
|
152
|
+
Year Low. It does not invent missing daily High and Low values.
|
|
153
|
+
|
|
154
|
+
### BVMAC-AS index
|
|
155
|
+
|
|
156
|
+
`load_index()` returns the value and daily percentage change when these can be
|
|
157
|
+
read from the bulletin. Some editions show the value only inside a chart, so an
|
|
158
|
+
index observation may be unavailable for those dates.
|
|
159
|
+
|
|
160
|
+
### Bonds
|
|
161
|
+
|
|
162
|
+
`load_bonds()` returns quote observations, including the previous close, open
|
|
163
|
+
and close prices as a percentage of face value, accrued coupon, order-book
|
|
164
|
+
volumes, trades, and price limits. `asset_class` identifies sovereign,
|
|
165
|
+
regional, or corporate bonds. The bulletin also has a separate issue table;
|
|
166
|
+
the initial extractor stores coupon rate, issue size, maturity, repayment
|
|
167
|
+
method, coupon dates, outstanding amount, yield, and turnover in a separate
|
|
168
|
+
dataset available through `load_bond_issues()`. `source_page` indicates where
|
|
169
|
+
the information came from.
|
|
170
|
+
|
|
171
|
+
Older bulletin layouts may not expose every bond row as readable table text.
|
|
172
|
+
The pipeline reports extraction gaps; a missing row should not be interpreted
|
|
173
|
+
as proof that no bond exists or traded.
|
|
174
|
+
|
|
175
|
+
### Funds
|
|
176
|
+
|
|
177
|
+
`load_funds()` returns previous and current net asset values (NAVs), their
|
|
178
|
+
dates, category, update frequency, and the bulletin's return figures. Funds
|
|
179
|
+
can be daily, weekly, monthly, or quarterly; the NAV's own date is retained so
|
|
180
|
+
users do not mistake a weekly update for a new daily price.
|
|
181
|
+
|
|
182
|
+
The `frequency` field is part of a fund observation's database key so daily,
|
|
183
|
+
weekly, monthly, and quarterly NAVs remain separate. When an older database is
|
|
184
|
+
opened after this change, the package makes a `.pre-migration-*.bak` copy before
|
|
185
|
+
updating its schema.
|
|
186
|
+
|
|
187
|
+
### Issuer snapshots
|
|
188
|
+
|
|
189
|
+
`load_issuer_snapshots()` returns the market capitalization table: last price,
|
|
190
|
+
listed float and total shares, last dividend, three-month liquidity, earnings
|
|
191
|
+
per share, price/earnings ratio, and float/total market capitalization.
|
|
192
|
+
Company profiles and long-form annual financial statements are included in
|
|
193
|
+
some bulletins but are not part of the initial daily-data release.
|
|
194
|
+
|
|
195
|
+
## Data limits
|
|
196
|
+
|
|
197
|
+
- The official bulletin is the source; this package is an independent PDF
|
|
198
|
+
extractor, not a BVMAC API.
|
|
199
|
+
- Not every weekday has a published bulletin. No-trade and missing-data values
|
|
200
|
+
are kept distinct where the bulletin allows it.
|
|
201
|
+
- An empty extraction warning means a table layout needs review; it does not
|
|
202
|
+
mean the market had no instruments.
|
|
203
|
+
- Historical coverage depends on the availability and extractability of the
|
|
204
|
+
source PDFs. Always check the pipeline summary before relying on a date range.
|
|
205
|
+
- This is historical market data, not a live quote feed or investment advice.
|
|
206
|
+
|
|
207
|
+
## Development
|
|
208
|
+
|
|
209
|
+
The source project is standalone: package import name `bvmac`, distribution
|
|
210
|
+
name `bvmac-data`, command `bvmac-update`.
|
|
211
|
+
|
|
212
|
+
The test suite includes regression checks against real BVMAC bulletins. Those
|
|
213
|
+
PDFs are not included in this public repository because BVMAC's published
|
|
214
|
+
website terms restrict redistribution of its documents. The PDF-specific
|
|
215
|
+
checks skip when the fixtures are absent; see `VALIDATION.md` for details.
|
|
216
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
bvmac/__init__.py,sha256=DuRbmqpy1yMdFO2gM5dGkQ1Paq3OvjbCGLO-SrAeRaA,2501
|
|
2
|
+
bvmac/cli.py,sha256=9Gocs5h25rxGRRq-QGMRGQ3zn8Gz_QEUE3Yqjb43EZI,1352
|
|
3
|
+
bvmac/config.py,sha256=NpNmvYMgZjm3OXpnlD2ltaUFS40T-APoQjViPrfxKcw,325
|
|
4
|
+
bvmac/database.py,sha256=gP5TogNzHYtK8fjh7RfWQ_dAh1_-hfre3f5nMYXybic,9627
|
|
5
|
+
bvmac/download.py,sha256=DF6gJlj5G9xlYGsq06ryKQQruQL8_yKycYERa2scBXk,5153
|
|
6
|
+
bvmac/extract.py,sha256=SHuXmBOBxdr6GkLPL4-IkBM9GKzSA-lmtc9CPsAE5aI,45161
|
|
7
|
+
bvmac/pipeline.py,sha256=JMPjrkUIp8ycN7EddjL9rGYRRN8URtMkyAN-SRLQVtg,6182
|
|
8
|
+
bvmac_data-0.1.0.dist-info/licenses/LICENSE,sha256=rcdkkU9mG4GughWiPgOGs5v-NyJWRUZHOgyz4IFFlHs,11343
|
|
9
|
+
bvmac_data-0.1.0.dist-info/METADATA,sha256=r3H2K0hqp41BQl8BXGkeqW6tlf3okZgiI2Af2rLZ6K4,8736
|
|
10
|
+
bvmac_data-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
11
|
+
bvmac_data-0.1.0.dist-info/entry_points.txt,sha256=HcAX6g-45os7Lzu68D24Ozx7mOQvg8bLYvfrSaj4p3s,48
|
|
12
|
+
bvmac_data-0.1.0.dist-info/top_level.txt,sha256=IUOVR3zy_wfdVv4zFVQOIyRBnuXkZfdTkQGQqrLin1A,6
|
|
13
|
+
bvmac_data-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Kadjah Ngango
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bvmac
|