question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation about loading packages in Python / Airflow

See original GitHub issue

Description

A guide is missing to answer the following questions.

  • How does Python load packages?
  • How does Airflow modify this behavior?
  • When and how you can affect the module loading mechanism?
    • PYTHONPATH
    • Pip packages
  • How to create python package with operators/plugins?
  • How to use PYTHONPATH?
    • A generic example and an example with Docker.
  • How do you check the contents of the sys.path variable?
    • airflow info command
  • How to set configuration option with import e.g. hostname_callback, api_client?

Best regards, Kamil

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mik-lajcommented, Aug 11, 2020

The new file in the root directory - docs/ sounds good to me.

1reaction
mik-lajcommented, Aug 10, 2020

@rootcss I assigned you to this ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modules Management — Airflow Documentation
Airflow allows you to use your own Python modules in the DAG and in the Airflow configuration. The following article will describe how...
Read more >
Installing Python dependencies - AWS Documentation
A Python dependency is any package or distribution that is not included in the Apache Airflow base install for your Apache Airflow version...
Read more >
Airflow docker install python packages: Airflow Tutorial P11
Airflow docker install python packages : Airflow Tutorial P11# Airflow #AirflowTutorial #Coder2j========== VIDEO CONTENT ==========Today I ...
Read more >
Installation - Apache Airflow Documentation - Read the Docs
Airflow is published as apache-airflow package in PyPI. Installing it however might be sometimes tricky because Airflow is a bit of both a...
Read more >
apache-airflow - PyPI
We publish Apache Airflow as apache-airflow package in PyPI. Installing it however might be sometimes tricky because Airflow is a bit of both...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found