Skip to main content

A SDK to facilitate the interaction with the Alasco API.

Project description

Alasco

Introduction

This package is 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

Setup in python

Import alasco

And import the module with the following command in your python script:

from alasco import Alasco

Instantiate client

Then instantiate the alasco 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: 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/

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.3.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

alasco-0.0.3-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alasco-0.0.3.tar.gz
  • Upload date:
  • Size: 17.3 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.3.tar.gz
Algorithm Hash digest
SHA256 a89a7626d8560176b27b465a77321bbc0b46244539754156917d67c9d4f34cf0
MD5 fc5d79867894d2725dddc1ff166cd5c8
BLAKE2b-256 cdfae1c98302473dcd2814b4c49c3414d257ee52f1a48e74e044a9d123a0e8a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alasco-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e5b3e5f7e0b17f751cedffdabc8b08ef0b37f1de0c2531ee08ae60c31e068ab9
MD5 6a668b7365161af5412ebfbadf581a79
BLAKE2b-256 c69f100081c9494a671400f6ce4e36338548d8ef51c85a2a85190a97e7f06433

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