Skip to main content

A SDK to facilitate the interaction with the Alasco API.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alasco-0.0.8.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

alasco-0.0.8-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file alasco-0.0.8.tar.gz.

File metadata

  • Download URL: alasco-0.0.8.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for alasco-0.0.8.tar.gz
Algorithm Hash digest
SHA256 921a60e436aa56193873928c4df2979011278f18b9ed7bc0a95938af8f26a65a
MD5 68532eda2639bab53dd94ab1394d0530
BLAKE2b-256 76296b3a563dbf2b4a0b562cb5ed6cdaeb4e64556e8ff91d5929f134f4c66950

See more details on using hashes here.

File details

Details for the file alasco-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: alasco-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for alasco-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bf1b96a0f1f2faa2b4e4e04aa2e4102c097841d9c1e96a8706898b76bfe20fb5
MD5 714b835b8d5ba0e566e737812005ea92
BLAKE2b-256 249547758acce232473a9fa360c1efd503fd01f1c003682cb19dcd02ee529280

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page