Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alasco

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alasco

A SDK to facilitate the interaction with the Alasco API.

  • 0.0.8
  • PyPI
  • Socket score

Maintainers
1

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:

idtypenamedescriptionaddresszip_codecitycountrydate_createdrelationships.projects.links.related
097bad92e-0fd8-4987-9f8e-aafcd4eafcd7PROPERTYWohnpark UnterachingAm Sportpark 482008Unterhaching2022-09-19T12:15:55.539340+00:00https://api.alasco.de/v1/properties/97bad92e-0fd8-4987-9f8e-aafcd4eafcd7/projects/
16ee2f67d-6911-4085-a7b3-4dbc370f494fPROPERTYGrundstück LeopoldstraßeLeopoldstr. 2180802München2021-07-14T09:50:47.760738+00:00https://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)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc