-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issues and refactor documentation structure
- Loading branch information
Showing
190 changed files
with
2,899 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,55 @@ | ||
============ | ||
Integrations | ||
============ | ||
============= | ||
Documentation | ||
============= | ||
|
||
This section showcases how Hamilton integrates with popular frameworks. | ||
This section showcases how Hamilton integrates with various tools and frameworks. | ||
|
||
Plugins | ||
======= | ||
|
||
This section highlights the plugins and libraries that Hamilton has extensions for. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Plugins: | ||
|
||
plugins/dlt/index | ||
plugins/ibis/index | ||
plugins/dbt | ||
|
||
Cookbook | ||
======== | ||
|
||
This section provides practical examples of how to use Hamilton with various tools. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Cookbook: | ||
|
||
cookbook/fastapi | ||
cookbook/streamlit | ||
|
||
Other Integrations | ||
================== | ||
|
||
This section lists other Hamilton integrations available for various platforms and services. | ||
|
||
.. toctree:: | ||
dlt/index | ||
fastapi | ||
ibis/index | ||
streamlit | ||
dbt | ||
MLFlow <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/mlflow> | ||
Airflow <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/airflow> | ||
Amazon Web Services <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/aws> | ||
Burr <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/LLM_Workflows/image_telephone> | ||
Dagster <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/dagster> | ||
Dask <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/dask> | ||
Feast <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/feast> | ||
Metaflow <https://github.com/outerbounds/hamilton-metaflow> | ||
Pandera <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/data_quality/pandera> | ||
Plotly <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/plotly> | ||
Polars <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/polars> | ||
Prefect <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/prefect> | ||
Ray <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/ray> | ||
Slack <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/slack> | ||
Spark <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/spark> | ||
Vaex <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/vaex> | ||
Narwhals <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/narwhals> | ||
OpenLineage <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/openlineage> | ||
MLFlow <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/mlflow> | ||
Airflow <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/airflow> | ||
Amazon Web Services <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/aws> | ||
Burr <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/LLM_Workflows/image_telephone> | ||
Dagster <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/dagster> | ||
Dask <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/dask> | ||
Feast <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/feast> | ||
Metaflow <https://github.com/outerbounds/hamilton-metaflow> | ||
Pandera <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/data_quality/pandera> | ||
Plotly <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/plotly> | ||
Polars <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/polars> | ||
Prefect <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/prefect> | ||
Ray <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/ray> | ||
Slack <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/slack> | ||
Spark <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/spark> | ||
Vaex <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/vaex> | ||
Narwhals <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/narwhals> | ||
OpenLineage <https://github.com/DAGWorks-Inc/hamilton/tree/main/examples/openlineage> |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
164 changes: 164 additions & 0 deletions
164
hamilton/env1/Include/site/python3.9/greenlet/greenlet.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
/* -*- indent-tabs-mode: nil; tab-width: 4; -*- */ | ||
|
||
/* Greenlet object interface */ | ||
|
||
#ifndef Py_GREENLETOBJECT_H | ||
#define Py_GREENLETOBJECT_H | ||
|
||
|
||
#include <Python.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* This is deprecated and undocumented. It does not change. */ | ||
#define GREENLET_VERSION "1.0.0" | ||
|
||
#ifndef GREENLET_MODULE | ||
#define implementation_ptr_t void* | ||
#endif | ||
|
||
typedef struct _greenlet { | ||
PyObject_HEAD | ||
PyObject* weakreflist; | ||
PyObject* dict; | ||
implementation_ptr_t pimpl; | ||
} PyGreenlet; | ||
|
||
#define PyGreenlet_Check(op) (op && PyObject_TypeCheck(op, &PyGreenlet_Type)) | ||
|
||
|
||
/* C API functions */ | ||
|
||
/* Total number of symbols that are exported */ | ||
#define PyGreenlet_API_pointers 12 | ||
|
||
#define PyGreenlet_Type_NUM 0 | ||
#define PyExc_GreenletError_NUM 1 | ||
#define PyExc_GreenletExit_NUM 2 | ||
|
||
#define PyGreenlet_New_NUM 3 | ||
#define PyGreenlet_GetCurrent_NUM 4 | ||
#define PyGreenlet_Throw_NUM 5 | ||
#define PyGreenlet_Switch_NUM 6 | ||
#define PyGreenlet_SetParent_NUM 7 | ||
|
||
#define PyGreenlet_MAIN_NUM 8 | ||
#define PyGreenlet_STARTED_NUM 9 | ||
#define PyGreenlet_ACTIVE_NUM 10 | ||
#define PyGreenlet_GET_PARENT_NUM 11 | ||
|
||
#ifndef GREENLET_MODULE | ||
/* This section is used by modules that uses the greenlet C API */ | ||
static void** _PyGreenlet_API = NULL; | ||
|
||
# define PyGreenlet_Type \ | ||
(*(PyTypeObject*)_PyGreenlet_API[PyGreenlet_Type_NUM]) | ||
|
||
# define PyExc_GreenletError \ | ||
((PyObject*)_PyGreenlet_API[PyExc_GreenletError_NUM]) | ||
|
||
# define PyExc_GreenletExit \ | ||
((PyObject*)_PyGreenlet_API[PyExc_GreenletExit_NUM]) | ||
|
||
/* | ||
* PyGreenlet_New(PyObject *args) | ||
* | ||
* greenlet.greenlet(run, parent=None) | ||
*/ | ||
# define PyGreenlet_New \ | ||
(*(PyGreenlet * (*)(PyObject * run, PyGreenlet * parent)) \ | ||
_PyGreenlet_API[PyGreenlet_New_NUM]) | ||
|
||
/* | ||
* PyGreenlet_GetCurrent(void) | ||
* | ||
* greenlet.getcurrent() | ||
*/ | ||
# define PyGreenlet_GetCurrent \ | ||
(*(PyGreenlet * (*)(void)) _PyGreenlet_API[PyGreenlet_GetCurrent_NUM]) | ||
|
||
/* | ||
* PyGreenlet_Throw( | ||
* PyGreenlet *greenlet, | ||
* PyObject *typ, | ||
* PyObject *val, | ||
* PyObject *tb) | ||
* | ||
* g.throw(...) | ||
*/ | ||
# define PyGreenlet_Throw \ | ||
(*(PyObject * (*)(PyGreenlet * self, \ | ||
PyObject * typ, \ | ||
PyObject * val, \ | ||
PyObject * tb)) \ | ||
_PyGreenlet_API[PyGreenlet_Throw_NUM]) | ||
|
||
/* | ||
* PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args) | ||
* | ||
* g.switch(*args, **kwargs) | ||
*/ | ||
# define PyGreenlet_Switch \ | ||
(*(PyObject * \ | ||
(*)(PyGreenlet * greenlet, PyObject * args, PyObject * kwargs)) \ | ||
_PyGreenlet_API[PyGreenlet_Switch_NUM]) | ||
|
||
/* | ||
* PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent) | ||
* | ||
* g.parent = new_parent | ||
*/ | ||
# define PyGreenlet_SetParent \ | ||
(*(int (*)(PyGreenlet * greenlet, PyGreenlet * nparent)) \ | ||
_PyGreenlet_API[PyGreenlet_SetParent_NUM]) | ||
|
||
/* | ||
* PyGreenlet_GetParent(PyObject* greenlet) | ||
* | ||
* return greenlet.parent; | ||
* | ||
* This could return NULL even if there is no exception active. | ||
* If it does not return NULL, you are responsible for decrementing the | ||
* reference count. | ||
*/ | ||
# define PyGreenlet_GetParent \ | ||
(*(PyGreenlet* (*)(PyGreenlet*)) \ | ||
_PyGreenlet_API[PyGreenlet_GET_PARENT_NUM]) | ||
|
||
/* | ||
* deprecated, undocumented alias. | ||
*/ | ||
# define PyGreenlet_GET_PARENT PyGreenlet_GetParent | ||
|
||
# define PyGreenlet_MAIN \ | ||
(*(int (*)(PyGreenlet*)) \ | ||
_PyGreenlet_API[PyGreenlet_MAIN_NUM]) | ||
|
||
# define PyGreenlet_STARTED \ | ||
(*(int (*)(PyGreenlet*)) \ | ||
_PyGreenlet_API[PyGreenlet_STARTED_NUM]) | ||
|
||
# define PyGreenlet_ACTIVE \ | ||
(*(int (*)(PyGreenlet*)) \ | ||
_PyGreenlet_API[PyGreenlet_ACTIVE_NUM]) | ||
|
||
|
||
|
||
|
||
/* Macro that imports greenlet and initializes C API */ | ||
/* NOTE: This has actually moved to ``greenlet._greenlet._C_API``, but we | ||
keep the older definition to be sure older code that might have a copy of | ||
the header still works. */ | ||
# define PyGreenlet_Import() \ | ||
{ \ | ||
_PyGreenlet_API = (void**)PyCapsule_Import("greenlet._C_API", 0); \ | ||
} | ||
|
||
#endif /* GREENLET_MODULE */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* !Py_GREENLETOBJECT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Niels Bantilan | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.