Skip to content

Commit

Permalink
Merge pull request tkp-archive#189 from timkpaine/move
Browse files Browse the repository at this point in the history
prepping for move
  • Loading branch information
timkpaine committed Dec 31, 2020
2 parents 28e7e72 + ba0d842 commit 6fed7e4
Show file tree
Hide file tree
Showing 105 changed files with 998 additions and 254 deletions.
7 changes: 7 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This is the official list of pyEX authors for copyright purposes.

Tim Paine <t.paine154@gmail.com>
Weston Platter <westonplatter@gmail.com>
Christian Oudard <christian.oudard@gmail.com>
Andres Cevallos <andrescevp@gmail.com>
Adam Klaff
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Thank you for your interest in contributing to pyEX!

We invite you to contribute enhancements. Upon review you will be required to complete the [Contributor License Agreement (CLA)](https://github.com/iexg/cla) before we are able to merge.
We invite you to contribute enhancements. Upon review you will be required to complete the [Contributor License Agreement (CLA)](https://github.com/iex/cla) before we are able to merge.

If you have any questions about the contribution process, please feel free to send an email to [support@iexcloud.io](mailto:support@iexcloud.io).

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020, Tim Paine
Copyright 2020, the pyEX authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# pyEX
Python interface to IEX Cloud (https://iexcloud.io/docs/api/)
Python interface to [IEX Cloud](https://iexcloud.io/docs/api/)

[![Build Status](https://github.com/timkpaine/pyEX/workflows/Build%20Status/badge.svg)](https://github.com/timkpaine/pyEX/workflows/Build%20Status/)
[![Build Status](https://github.com/timkpaine/pyEX/workflows/Build%20Status/badge.svg)](https://github.com/timkpaine/pyEX/actions?query=workflow%3A%22Build+Status%22)
[![Coverage](https://codecov.io/gh/timkpaine/pyEX/branch/main/graph/badge.svg?token=ag2j2TV2wE)](https://codecov.io/gh/timkpaine/pyEX)
[![License](https://img.shields.io/github/license/timkpaine/pyEX.svg)](https://pypi.python.org/pypi/pyEX/)
[![PyPI](https://img.shields.io/pypi/v/pyEX.svg)](https://pypi.python.org/pypi/pyEX/)
Expand Down Expand Up @@ -936,7 +936,9 @@ These are built on [TA-lib](https://ta-lib.org). Note that these are different f
- adosc: Chaikin A/D Oscillator
- obv: On Balance Volume

## Attribution
- [Powered by IEX Cloud](https://iexcloud.io)
- Data provided for free by [IEX](https://iextrading.com/developer).
- [IEX terms of service](https://iextrading.com/api-exhibit-a)
## Development
See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.

## License
This software is licensed under the Apache 2.0 license. See the
[LICENSE](LICENSE) and [AUTHORS](AUTHORS) files for details.
8 changes: 7 additions & 1 deletion pyEX/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .client import * # noqa: F403
from .common import PyEXception, PyEXStopSSE, overrideSSEUrl, overrideUrl, setProxy

Expand Down
7 changes: 7 additions & 0 deletions pyEX/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from collections import namedtuple

VersionInfo = namedtuple(
Expand Down
18 changes: 13 additions & 5 deletions pyEX/account/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# -*- coding: utf-8 -*-
import pandas as pd
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from functools import wraps

import pandas as pd

from ..common import (
_requireSecret,
_USAGE_TYPES,
PyEXception,
_getJson,
_postJson,
PyEXception,
_USAGE_TYPES,
_requireSecret,
json_normalize,
)

Expand Down
11 changes: 9 additions & 2 deletions pyEX/alternative/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .alternative import (
ceoCompensation,
ceoCompensationDF,
crypto,
cryptoDF,
sentiment,
sentimentDF,
ceoCompensation,
ceoCompensationDF,
)
14 changes: 11 additions & 3 deletions pyEX/alternative/alternative.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# -*- coding: utf-8 -*-
import pandas as pd
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from functools import wraps

import pandas as pd

from ..common import (
_expire,
_getJson,
_raiseIfNotStr,
_strOrDate,
_reindex,
_strOrDate,
_toDatetime,
json_normalize,
)
Expand Down
8 changes: 7 additions & 1 deletion pyEX/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
import os
from functools import partial, wraps

Expand Down
7 changes: 7 additions & 0 deletions pyEX/commodities/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .commodities import CommoditiesPoints # noqa: F401
9 changes: 8 additions & 1 deletion pyEX/commodities/commodities.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from functools import lru_cache
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from enum import Enum
from functools import lru_cache


class CommoditiesPoints(Enum):
Expand Down
8 changes: 7 additions & 1 deletion pyEX/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from __future__ import print_function

import json
Expand Down
7 changes: 7 additions & 0 deletions pyEX/cryptocurrency/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .cryptocurrency import (
cryptoBook,
cryptoBookDF,
Expand Down
12 changes: 10 additions & 2 deletions pyEX/cryptocurrency/cryptocurrency.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- coding: utf-8 -*-
import pandas as pd
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from functools import wraps

import pandas as pd

from ..common import _getJson


Expand Down
7 changes: 7 additions & 0 deletions pyEX/economic/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .economic import EconomicPoints # noqa: F401
7 changes: 7 additions & 0 deletions pyEX/economic/economic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from enum import Enum
from functools import lru_cache

Expand Down
11 changes: 9 additions & 2 deletions pyEX/fx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .fx import (
latestFX,
latestFXDF,
convertFX,
convertFXDF,
historicalFX,
historicalFXDF,
latestFX,
latestFXDF,
)
14 changes: 11 additions & 3 deletions pyEX/fx/fx.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# -*- coding: utf-8 -*-
import pandas as pd
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
import itertools
from ..common import _expire, _getJson, _strOrDate, _reindex

import pandas as pd

from ..common import _expire, _getJson, _reindex, _strOrDate


def latestFX(symbols=None, token="", version="", filter=""):
Expand Down
8 changes: 7 additions & 1 deletion pyEX/marketdata/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
9 changes: 8 additions & 1 deletion pyEX/marketdata/cryptocurrency.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from enum import Enum

from .sse import _runSSE, _runSSEAsync


Expand Down
9 changes: 8 additions & 1 deletion pyEX/marketdata/fx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from enum import Enum
from functools import wraps

from .sse import _runSSE, _runSSEAsync


Expand Down
16 changes: 12 additions & 4 deletions pyEX/marketdata/http.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# -*- coding: utf-8 -*-
import pandas as pd
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from functools import wraps

import pandas as pd

from ..common import (
_getJson,
_getJsonAsync,
_strToList,
_raiseIfNotStr,
_strOrDate,
_reindex,
_strOrDate,
_strToList,
_toDatetime,
json_normalize,
)
Expand Down
8 changes: 7 additions & 1 deletion pyEX/marketdata/news.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .sse import _runSSE, _runSSEAsync


Expand Down
8 changes: 7 additions & 1 deletion pyEX/marketdata/sentiment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from .sse import _runSSE, _runSSEAsync


Expand Down
21 changes: 14 additions & 7 deletions pyEX/marketdata/sse.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# -*- coding: utf-8 -*-
# *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the jupyterlab_templates library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from enum import Enum

from ..common import (
_strCommaSeparatedString,
_streamSSE,
_streamSSEAsync,
_SSE_DEEP_URL_PREFIX,
_SSE_DEEP_URL_PREFIX_SANDBOX,
_SSE_URL_PREFIX,
_SSE_URL_PREFIX_ALL,
_SSE_DEEP_URL_PREFIX,
_SSE_URL_PREFIX_SANDBOX,
_SSE_URL_PREFIX_ALL_SANDBOX,
_SSE_DEEP_URL_PREFIX_SANDBOX,
_SSE_URL_PREFIX_SANDBOX,
PyEXception,
_strCommaSeparatedString,
_streamSSE,
_streamSSEAsync,
)


Expand Down

0 comments on commit 6fed7e4

Please sign in to comment.