semvec/pypi-packages huggingface dataset:
pygindex 0.2.0
PyGIndex - Python library/framework

# PyGIndex

Python library/framework to access and trade on IG Index

[![PyPI Version][pypi-image]][pypi-url]
[![Python Version][python-image]][pypi-url]
[![Build Status][build-image]][build-url]
[![Code Coverage][coverage-image]][coverage-url]
[![Code Quality][quality-image]][quality-url]
[![Documentation][rtd-image]][rtd-url]

# Installing

Install and update using pip:

    pip install -U pygindex

# Examples

## Get session details

    from pygindex.client import IGClient
    
    c = IGClient()
    s = c.get_session_details()
    print(s)

Will produce

    {'clientId': 'XXXXXXXXX', 
     'accountId': 'XXXXX', 
     'timezoneOffset': 1, 
     'locale': 'en_GB', 
     'currency': 'GBP', 
     'lightstreamerEndpoint': 'https://apd.marketdatasystems.com'}

# Links

* [Documentation][rtd-url]
* [PyPI][pypi-url]
* [Source](https://github.com/rytis/pygindex/)
* [Issues](https://github.com/rytis/pygindex/issues/)

<!-- Links -->

[python-image]: https://img.shields.io/pypi/pyversions/pygindex
[pypi-image]: https://img.shields.io/pypi/v/pygindex
[pypi-url]: https://pypi.org/project/pygindex/
[build-image]: https://github.com/rytis/pygindex/actions/workflows/build.yml/badge.svg
[build-url]: https://github.com/rytis/ppygindex/actions/workflows/build.yml
[coverage-image]: https://codecov.io/gh/rytis/pygindex/branch/main/graph/badge.svg
[coverage-url]: https://codecov.io/gh/rytis/pygindex
[quality-image]: https://api.codeclimate.com/v1/badges/85717ac8e0612fa5d695/maintainability
[quality-url]: https://codeclimate.com/github/rytis/pygindex
[rtd-image]: https://img.shields.io/readthedocs/pygindex
[rtd-url]: https://pygindex.readthedocs.io
flask_first 0.1.1
Flask extension for using “specification first” principle.

Flask-First
===========

Flask extension for using "specification first" principle.

Features:

* Decorator for mapping routes from OpenAPI specification on Python's functions via Flask.
* Building Flask routes with path-parameters. Flask converters are available:

  * string - accepts any text without a slash (the default)
  * int - accepts integers
  * float - like int but for floating point values

Installing
----------

Install and update using `pip`_:

.. code-block:: text

  $ pip install -U Flask-First

.. _pip: https://pip.pypa.io/en/stable/quickstart/

A Simple Example
----------------
OpenAPI 3 specification file `example.yaml`:

.. code-block:: yaml

    openapi: 3.0.3
    info:
      title: Simple API for Flask-First
      version: 1.0.0
    paths:
      /index/{name}:
        get:
          operationId: index
          summary: Returns a list of items
          responses:
            '200':
              description: OK

File with application initialization `main.py`:

.. code-block:: python

    from flask import Flask
    from flask_first import First

    basedir = os.path.abspath(os.path.dirname(__file__))
    path_to_spec=os.path.join(basedir, "specs", "example.yaml")

    app = Flask(__name__)
    app.config["FIRST_RESPONSE_VALIDATION"] = True
    First(app, path_to_spec=path_to_spec)


    @app.specification
    def index(name):
        return f'Hello, {name}!'