Alasco
Introduction
This package is an SDK for python to facilitate interaction with the Alasco API.
The official documentation from Alasco can be found here.
How to install it
Run the following command in your terminal:
pip install alasco
Get started
Import the alasco module and then instantiate the client like this:
from alasco import Alasco
from dotenv import load_dotenv, find_dotenv
_ = load_dotenv(find_dotenv(raise_error_if_not_found=True))
token = os.environ["token"] # your alasco token
key = os.environ["key"] # your alasco key
alasco = Alasco(token=token, key=key, verbose=True)
Example 1 : fetch all DataFrames
dfs = alasco.data_fetcher.get_all_df()
dfs["properties"].head(2)
Output:
| id | type | name | description | address | zip_code | city | country | date_created | relationships.projects.links.related | |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 97bad92e-0fd8-4987-9f8e-aafcd4eafcd7 | PROPERTY | Wohnpark Unteraching | Am Sportpark 4 | 82008 | Unterhaching | 2022-09-19T12:15:55.539340+00:00 | https://api.alasco.de/v1/properties/97bad92e-0fd8-4987-9f8e-aafcd4eafcd7/projects/ | ||
| 1 | 6ee2f67d-6911-4085-a7b3-4dbc370f494f | PROPERTY | Grundstück Leopoldstraße | Leopoldstr. 21 | 80802 | München | 2021-07-14T09:50:47.760738+00:00 | https://api.alasco.de/v1/properties/6ee2f67d-6911-4085-a7b3-4dbc370f494f/projects/ |
Example 2 : Batch download documents
Download all documents (contracts, invoices, change orders) for a particular property locally. This can be useful for backup purposes.
property_name = "YOUR_PROPERTY_NAME"
dfs = alasco.data_fetcher.get_all_df(property_name = property_name)
alasco.document_downloader.batch_download_documents(dfs=dfs, property_name = property_name)
Metadata
Release files for alasco 0.0.9
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 |
|---|---|---|---|---|
| alasco-0.0.9.tar.gz | 18.0 kB | Without provenance | Details for alasco-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alasco-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for alasco-0.0.9-py3-none-any.whl |
Total release size: 38.4 kB
Release files / alasco-0.0.9.tar.gz
| Download URL | alasco-0.0.9.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
612ff1b2e5773acb8f4ad8704384272aa7b59182968fdb19a366ae095319b2ba
|
|
BLAKE2b-256 checksum How to use checksums |
23f9539116970ccbe08ee20ba7ab3c77d530e58b18d23aefacee51bcdc991bfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / alasco-0.0.9-py3-none-any.whl
| Download URL | alasco-0.0.9-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27d1555e2132baefc112a7997861104b503bfbef1e00a4fd17fc054ff4256228
|
|
BLAKE2b-256 checksum How to use checksums |
8e529b441b67cd91c4250d931415b796029f9eefcbb0fab73dbe5b9042f46343
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for alasco 0.0.9
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.