Code Monkey home page Code Monkey logo

airflow-diagrams's People

Contributors

dependabot[bot] avatar feluelle avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

airflow-diagrams's Issues

Script crashes because it tries to (yaml) map values in my DAG because of colons in the .py

I get an ScannerError saying ScannerError: mapping values are not allowed here in "file.py", line 18, column 12 when i try to airflow-diagrams generate --from-file file.py'. I wonder why this happends, because every DAG file has at least default_args = {
"owner": "myself",
"depends_on_past": False, ...` in it, which looks like the source of the problem to me. Every if statement in the DAG file throws an error, because it uses a colon. Is this also a problem by not using --from-file ?

Allow reading Airflow Information from file

If we allow reading Airflow information from a file, the command generate does not need direct access to the Airflow REST-API, which makes it more secure as the REST API does not need to be enabled only to use this feature.

Add more examples to README

We would like to have some examples for generated (and rendered) diagrams. It would be nice to have some complex dags, but also small ones would work for displaying in the README.

We can upload them to the examples directory and link them in the README.md.

commented lines (#) in --from-file method do not work

I have a DAG as .py which i try to render using airflow-diagrams generate --from-file path/file.py. The file has comments in it.
The error i get is:
ParserError: expected '<document start>', but found '<scalar>' in "file.py", line 13, column 1

I believe it is necessary to adjust the read file. Delete lines which begin with #, also having in my to .lstrip the line because of indentation.

TaskIds that contain numbers or dashes are not supported

If you have a DAG which contains tasks where the id contains either numbers or dashes then, although the diagram Python file is created, it cannot be run to generate the diagram image.

e.g.

from diagrams import Diagram
from diagrams.generic.blank import Blank

with Diagram("airbyte", show=False):
    airbyte-job_sensor = Blank("airbyte_job_sensor")
    airbyte_trigger_async = Blank("airbyte_trigger_async")
    
    airbyte_trigger_async >> [airbyte_job_sensor]
โžœ  airflow-diagrams git:(master) โœ— python3 examples/airbyte_diagrams.py
  File "/Users/nathan/Projects/airflow-diagrams/examples/airbyte_diagrams.py", line 5
    airbyte-job_sensor = Blank("airbyte_job_sensor")
    ^
SyntaxError: cannot assign to operator

Diagram images don't seem to be generated correctly

I installed airflow-diagrams as per the instructions (FYI - I also had to install Graphviz, currently running 2.50.0) but just trying to run the example diagrams the returned image seemed to be lacking in detail.

airbyte

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.