Skip to content

Commit bebcf43

Browse files
committed
Bump to v3.17.1
1 parent eb49361 commit bebcf43

121 files changed

Lines changed: 6915 additions & 7930 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include README.md changelog.txt NOTES License.txt
2+
3+
recursive-include examples *.py README.md diagram.png
4+
recursive-exclude examples/demoapps-internal *
5+
6+
prune cpp-licenses

PKG-INFO

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
Metadata-Version: 1.1
1+
Metadata-Version: 2.1
22
Name: blpapi
3-
Version: 3.16.5
3+
Version: 3.17.1
44
Summary: Python SDK for Bloomberg BLPAPI
55
Home-page: http://www.bloomberglabs.com/api/
66
Author: Bloomberg L.P.
77
Author-email: open-tech@bloomberg.net
88
License: UNKNOWN
9-
Description: UNKNOWN
109
Platform: UNKNOWN
1110
Classifier: Development Status :: 5 - Production/Stable
1211
Classifier: Intended Audience :: Developers
1312
Classifier: Intended Audience :: Financial and Insurance Industry
1413
Classifier: License :: Other/Proprietary License
1514
Classifier: Topic :: Office/Business :: Financial
15+
Requires-Python: >=3
16+
License-File: License.txt
17+
18+
UNKNOWN
19+

README renamed to README.md

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Bloomberg Python API
2-
====================
1+
# Bloomberg Python API
32

43
This directory contains an interface for interacting with Bloomberg API
54
services using the Python programming language. This package is the source
@@ -9,8 +8,7 @@ Python's `setuptools` package.
98
Users are encouraged to install using `pip` directly, as documented in
109
<https://www.bloomberg.com/professional/support/api-library>
1110

12-
Dependencies
13-
------------
11+
## Dependencies
1412

1513
This SDK requires the following products:
1614

@@ -29,15 +27,9 @@ unsupported versions of CPython.
2927

3028
On Windows, the VS redistributable package for the compiler used in the target
3129
CPython installation is needed. You can find the compiler version for a
32-
CPython version in [1] and the VC redistributable package in [2].
30+
CPython version [here](https://wiki.python.org/moin/WindowsCompilers) and the VC redistributable package [here](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads).
3331

34-
[1] https://wiki.python.org/moin/WindowsCompilers
35-
36-
[2] https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
37-
38-
39-
Installation from sources
40-
-------------------------
32+
## Installation from sources
4133

4234
Installation using pip is strongly recommended, and can handle installing from
4335
sources by building the Python SDK binaries locally. The C++ SDK and setting
@@ -57,20 +49,26 @@ distributed as part of the Bloomberg C++ SDK.
5749

5850
2. To compile and install the `blpapi` Python package for all users, run
5951

60-
> python setup.py install
52+
```bash
53+
> python setup.py install
54+
```
6155

6256
To compile and install the `blpapi` Python package for only the current
6357
user, run
6458

65-
> python setup.py install --user
59+
```bash
60+
> python setup.py install --user
61+
```
6662

6763
(Note that the former command requires root/administrator access, while the
6864
latter does not.)
6965

7066
Documentation on additional build and installation options is available by
7167
running
7268

73-
> python setup.py --help
69+
```bash
70+
> python setup.py --help
71+
```
7472

7573
3. (optional) Copy the C++ SDK shared library/DLL to a standard library
7674
location (e.g. `/usr/lib` on Linux), or update the system-wide library path
@@ -82,8 +80,7 @@ distributed as part of the Bloomberg C++ SDK.
8280
installed.
8381

8482

85-
Writing Bloomberg API Programs in Python
86-
----------------------------------------
83+
## Writing Bloomberg API Programs in Python
8784

8885
In order for python scripts to call Bloomberg API functions, the libraries
8986
distributed as part of the Bloomberg C++ SDK must be available to the Python
@@ -99,12 +96,14 @@ these libraries in their `PATH`.)
9996
After installation, the `blpapi` module can be imported by a Python script or
10097
within the CPython interpreter:
10198

102-
>>> import blpapi
103-
>>> options = blpapi.SessionOptions()
104-
>>> options.setServerHost('localhost')
105-
>>> options.setServerPort(8194)
106-
>>> session = blpapi.Session(options)
107-
>>> session.start()
99+
```python
100+
>>> import blpapi
101+
>>> options = blpapi.SessionOptions()
102+
>>> options.setServerHost('localhost')
103+
>>> options.setServerPort(8194)
104+
>>> session = blpapi.Session(options)
105+
>>> session.start()
106+
```
108107

109108
Note that many Python installations add the current directory to the module
110109
search path. If the Python interpreter is invoked from the installer directory,
@@ -121,19 +120,17 @@ Developer's Guide, available at
121120
<http://www.bloomberg.com/professional/api-library>.
122121

123122

124-
Examples
125-
--------
123+
## Examples
126124

127125
A collection of complete Python programs covering a wide range of typical API
128-
usage is available in the `examples` directory, located in the same directory
126+
usage is available in the [`examples` directory](examples/), located in the same directory
129127
as this `README` file. Note that many examples make use of command-line
130128
arguments to specify server and authentication configuration; in most cases
131129
usage information can be obtained by passing the `--help` option on the command
132130
line.
133131

134132

135-
Implementation Notes
136-
--------------------
133+
## Implementation Notes
137134

138135
- The Bloomberg SDK for Python 2 does not provide direct support for Python
139136
`unicode` objects. Clients can pass unicode data to SDK functions accepting
@@ -145,8 +142,7 @@ Implementation Notes
145142
`pickle` modules.
146143

147144

148-
Copyright and License
149-
---------------------
145+
## Copyright and License
150146

151147
All files Copyright 2012 Bloomberg Finance L.P.
152148

@@ -168,4 +164,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
168164
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
169165
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
170166
SOFTWARE.
171-

changelog.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
Version 3.17.1:
2+
===============
3+
- Stability and performance improvements
4+
5+
Version 3.17.0:
6+
===============
7+
- Native-type formatting and message consumption
8+
Add ability to format 'Event's and 'Request's from native Python types
9+
using methods 'EventFormatter.fromPy' and 'Request.fromPy'. Add ability
10+
to convert a 'Message' to 'dict' with 'Message.toPy'. 'Message's and
11+
'Request's have 'dict'-like behavior with '__getitem__' and
12+
'__setitem__'.
13+
14+
- A new method 'correlationId()' is added to 'blpapi.Message'
15+
A new method 'Message.correlationId()' is added to return the
16+
single CorrelationId associated with the message or None if the
17+
message has no CorrelationIds. If the message has multiple
18+
CorrelationIds, the first one is returned.
19+
20+
- Constants for common used `Names`
21+
A new utility class `blpapi.Names` has been added with common
22+
message names.
23+
24+
- Revamped examples
25+
The 'examples' directory now contains 'demoapps' and 'unittests'
26+
subdirectories. The 'demoapps' directory contains a consolidated set of
27+
example applications. Within 'demoapps', the 'snippets' directory contains
28+
sample code for creating and sending requests, and for processing
29+
responses. Also within 'demoapps', the 'util' directory contains common
30+
code shared between examples. The 'unittests' directory has been renamed
31+
from 'mock-test-examples' and contains sample code for using the mock
32+
testing interface.
33+
34+
- End of Python 2 support
35+
Installation and use of BLPAPI Python now requires a Python 3.6+
36+
runtime.
37+
38+
- Stability and performance improvements
39+
40+
Version 3.16.6:
41+
===============
42+
- Stability and performance improvements
43+
144
Version 3.16.5:
245
===============
346
- Stability and performance improvements

0 commit comments

Comments
 (0)