A lightweight python module for building event driven distributed systems

Overview

Build Status Coverage Status Documentation Status

Eventify

A lightweight python module for building event driven distributed systems.

Installation

pip install eventify

Problem

Developers need a easy and fast way to implement business logic in a modern asynchronous way. Developers should not have to worry about service communication.

Contributing

TBD

Architecture

ArchDiagram

Tutorial

Below is everything you need to get started using the eventify project.

Minimum Viable Service

Create an Event handler function to receive events. To publish events, use session.emit_event() within the Event handler function. To start your service (and begin listening for events), pass the Event handler function as a callback to run a Service.

#!/usr/bin/env python
"""
Minimal viable microservice
"""
import asyncio
import logging
import sys

from eventify.base_handler import BaseHandler
from eventify.event import Event
from eventify.service import Service


class GoogleCollector:
    """
    Google Specific Collector
    """

    async def collect_vm_data(self):
        print('...collecting data from gce api...')
        await asyncio.sleep(1)

class Collector(BaseHandler, GoogleCollector):
    """
    Generic collector
    """

    async def init(self):
        """
        Service initialization
        """
        print('...service initialized...')


def run():
    """
    Run an eventify service
    """
    Service(
        config_file='config.json',
        handlers=[Collector]
    ).start()

if __name__ == '__main__':
    run()

Minimum Configuration - config.json

Each application (service, microservice, etc.) can publish to 0 or 1 topic and subscribe to 0 or more topics. Thus each application requires its own configuration file which defines its publications & subscriptions. Each configuration file also specifies the location of the transport host.

{
    "_comment": "service configuration",
    "name": "example",
    "image": "example/service",
    "driver": "crossbar",
    "transport_host": "ws://events-server:8080/ws",
    "pub_options": {
        "acknowledge": true,
        "retain": true
    },
    "publish_topic": {
        "topic": "example",
        "timeout": 20,
        "reply_in": 0
    },
    "subscribed_topics": [
        "ui-events"
    ],
    "replay_events": true,
    "replay_type": "event_store"
}

Event History Support

To add event history support add the @event_tracker decorator to any event handler your define.

Environment variables

  • EVENT_DB_HOST

Hostname of database server

  • EVENT_DB_USER

Username for database server

  • EVENT_DB_PASS

Password for username

  • EVENT_DB_TYPE

Database driver type - defaults to postgres

  • EVENT_DB_POOL_SIZE

Database connection pool size - defaults to 5

  • EVENT_TRACKING_HOST

For use with replay functionality - host of in memory cache

Supported Drivers

  • Crossbar
  • Kafka

Crossbar

Quickest way to get started with crossbar is to use docker; both redis and postgresql are required for a minimal working service.

Running Crossbar

docker run -d -p 8080:8080 -it crossbario/crossbar:latest

Running Kafka

  • TBD

Running Redis

docker run -d -p 6379:6379 -t redis:latest

Running Postgresql

docker run --name postgres-container -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d postgres

Note: This does not have a volume or persistant storage so in a production environment you would want to configure a volume

See More

http://crossbar.io

Pypi

https://pypi.python.org/pypi/eventify

Read The Docs

http://eventify.readthedocs.io/en/latest/

Comments
  • Bump twisted from 20.3.0 to 22.1.0

    Bump twisted from 20.3.0 to 22.1.0

    Bumps twisted from 20.3.0 to 22.1.0.

    Release notes

    Sourced from twisted's releases.

    Twisted 22.1.0 (2022-02-03)

    Features

    • Python 3.10 is now a supported platform (#10224)
    • Type annotations have been added to the twisted.python.fakepwd module. (#10287)

    Bugfixes

    • twisted.internet.defer.inlineCallbacks has an improved type annotation, to avoid typing errors when it is used on a function which returns a non-None result. (#10231)
    • twisted.internet.base.DelayedCall.__repr__ and twisted.internet.task.LoopingCall.__repr__ had the changes from #10155 reverted to accept non-function callables. (#10235)
    • Revert the removal of .whl building that was done as part of #10177. (#10236)
    • The type annotation of the host parameter to twisted.internet.interfaces.IReactorTCP.connectTCP has been corrected from bytes to str. (#10251)
    • Deprecated twisted.python.threading.ThreadPool.currentThread() in favor of threading.current_thread(). Switched twisted.python.threading.ThreadPool.currentThread() and twisted.python.threadable.getThreadID() to use `threading.current_thread()to avoid the deprecation warnings introduced forthreading.currentThread()`` in Python 3.10. (#10273)

    Improved Documentation

    • twisted.internet.utils.runWithWarningsSupressed behavior of waiting on deferreds has been documented. (#10238)
    • Sync API docs templates with pydoctor 21.9.0 release, using new theming capabilities. (#10267)

    Misc

    Conch

    Features

    
    - twisted.conch.ssh now supports SSH extension negotiation (RFC 8308). ([#10266](https://github.com/twisted/twisted/issues/10266))
    

    Bugfixes

    • twisted.conch now uses constant-time comparisons for MACs. (#8199)
    • twisted.conch.ssh.filetransfer.FileTransferServer will now return an ENOENT error status if an SFTP client tries to close an unrecognized file handle. (#10293)
    • SSHTransportBase.ssh_KEXINIT now uses the remote peer preferred MAC list for negotiation. In previous versions it was only using the local preferred MAC list. (#10241)

    ... (truncated)

    Changelog

    Sourced from twisted's changelog.

    Twisted 22.1.0 (2022-02-03)

    Features

    • Python 3.10 is now a supported platform (#10224)
    • Type annotations have been added to the twisted.python.fakepwd module. (#10287)

    Bugfixes

    • twisted.internet.defer.inlineCallbacks has an improved type annotation, to avoid typing errors when it is used on a function which returns a non-None result. (#10231)
    • twisted.internet.base.DelayedCall.__repr__ and twisted.internet.task.LoopingCall.__repr__ had the changes from #10155 reverted to accept non-function callables. (#10235)
    • Revert the removal of .whl building that was done as part of #10177. (#10236)
    • The type annotation of the host parameter to twisted.internet.interfaces.IReactorTCP.connectTCP has been corrected from bytes to str. (#10251)
    • Deprecated twisted.python.threading.ThreadPool.currentThread() in favor of threading.current_thread(). Switched twisted.python.threading.ThreadPool.currentThread() and twisted.python.threadable.getThreadID() to use `threading.current_thread()to avoid the deprecation warnings introduced forthreading.currentThread()`` in Python 3.10. (#10273)

    Improved Documentation

    • twisted.internet.utils.runWithWarningsSupressed behavior of waiting on deferreds has been documented. (#10238)
    • Sync API docs templates with pydoctor 21.9.0 release, using new theming capabilities. (#10267)

    Misc

    Conch

    Bugfixes

    • SSHTransportBase.ssh_KEXINIT now uses the remote peer preferred MAC list for negotiation. In previous versions it was only using the local preferred MAC list. (#10241)

    Features

    
    - twisted.conch.ssh now supports SSH extension negotiation (RFC 8308). ([#10266](https://github.com/twisted/twisted/issues/10266))
    

    Bugfixes </tr></table>

    ... (truncated)

    Commits
    • 45d463c move conch bugfix.
    • d48e4d3 Manually update the release version and date inside the NEWS file. T
    • 9ce5061 Update final release version.
    • 9d9322b Update the release notes.
    • 7e65fbe Bump copyright.
    • ddf72a9 tox -e towncrier
    • b33589f Update to 21.1.0.rc1
    • a033c84 Merge pull request #1685 from twisted/10293-conch-sftp-close-invalid-handle
    • 9e9cce2 Copy the skip logic from FileTransferCloseTests
    • 385e9f2 mention the name of the draft doc
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 1
  • Bump urllib3 from 1.25.2 to 1.25.8

    Bump urllib3 from 1.25.2 to 1.25.8

    Bumps urllib3 from 1.25.2 to 1.25.8.

    Release notes

    Sourced from urllib3's releases.

    1.25.8

    Release: 1.25.8

    1.25.7

    No release notes provided.

    1.25.6

    Release: 1.25.6

    1.25.5

    Release: 1.25.5

    1.25.4

    Release: 1.25.4

    Changelog

    Sourced from urllib3's changelog.

    1.25.8 (2020-01-20)

    • Drop support for EOL Python 3.4 (Pull #1774)

    • Optimize _encode_invalid_chars (Pull #1787)

    1.25.7 (2019-11-11)

    • Preserve chunked parameter on retries (Pull #1715, Pull #1734)

    • Allow unset SERVER_SOFTWARE in App Engine (Pull #1704, Issue #1470)

    • Fix issue where URL fragment was sent within the request target. (Pull #1732)

    • Fix issue where an empty query section in a URL would fail to parse. (Pull #1732)

    • Remove TLS 1.3 support in SecureTransport due to Apple removing support (Pull #1703)

    1.25.6 (2019-09-24)

    • Fix issue where tilde (~) characters were incorrectly percent-encoded in the path. (Pull #1692)

    1.25.5 (2019-09-19)

    • Add mitigation for BPO-37428 affecting Python <3.7.4 and OpenSSL 1.1.1+ which caused certificate verification to be enabled when using cert_reqs=CERT_NONE. (Issue #1682)

    1.25.4 (2019-09-19)

    • Propagate Retry-After header settings to subsequent retries. (Pull #1607)

    • Fix edge case where Retry-After header was still respected even when explicitly opted out of. (Pull #1607)

    • Remove dependency on rfc3986 for URL parsing.

    • Fix issue where URLs containing invalid characters within Url.auth would raise an exception instead of percent-encoding those characters.

    ... (truncated)

    Commits
    • 2a57bc5 Release 1.25.8 (#1788)
    • a2697e7 Optimize _encode_invalid_chars (#1787)
    • d2a5a59 Move IPv6 test skips in server fixtures
    • d44f0e5 Factorize test certificates serialization
    • 84abc7f Generate IPV6 certificates using trustme
    • 6a15b18 Run IPv6 Tornado server from fixture
    • 4903840 Use trustme to generate IP_SAN cert
    • 9971e27 Empty responses should have no lines.
    • 62ef68e Use trustme to generate NO_SAN certs
    • fd2666e Use fixture to configure NO_SAN test certs
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 1
  • Update pytest to 4.4.2

    Update pytest to 4.4.2

    This PR updates pytest from 4.4.1 to 4.4.2.

    Changelog

    4.4.2

    =========================
    
    Bug Fixes
    ---------
    
    - `5089 &lt;https://github.com/pytest-dev/pytest/issues/5089&gt;`_: Fix crash caused by error in ``__repr__`` function with both ``showlocals`` and verbose output enabled.
    
    
    - `5139 &lt;https://github.com/pytest-dev/pytest/issues/5139&gt;`_: Eliminate core dependency on &#39;terminal&#39; plugin.
    
    
    - `5229 &lt;https://github.com/pytest-dev/pytest/issues/5229&gt;`_: Require ``pluggy&gt;=0.11.0`` which reverts a dependency to ``importlib-metadata`` added in ``0.10.0``.
    The ``importlib-metadata`` package cannot be imported when installed as an egg and causes issues when relying on ``setup.py`` to install test dependencies.
    
    
    
    Improved Documentation
    ----------------------
    
    - `5171 &lt;https://github.com/pytest-dev/pytest/issues/5171&gt;`_: Doc: ``pytest_ignore_collect``, ``pytest_collect_directory``, ``pytest_collect_file`` and ``pytest_pycollect_makemodule`` hooks&#39;s &#39;path&#39; parameter documented type is now ``py.path.local``
    
    
    - `5188 &lt;https://github.com/pytest-dev/pytest/issues/5188&gt;`_: Improve help for ``--runxfail`` flag.
    
    
    
    Trivial/Internal Changes
    ------------------------
    
    - `5182 &lt;https://github.com/pytest-dev/pytest/issues/5182&gt;`_: Removed internal and unused ``_pytest.deprecated.MARK_INFO_ATTRIBUTE``.
    
    Links
    • PyPI: https://pypi.org/project/pytest
    • Changelog: https://pyup.io/changelogs/pytest/
    • Homepage: https://docs.pytest.org/en/latest/
    opened by pyup-bot 1
  • Update pluggy to 0.10.0

    Update pluggy to 0.10.0

    This PR updates pluggy from 0.9.0 to 0.10.0.

    The bot wasn't able to find a changelog for this release. Got an idea?

    Links
    • PyPI: https://pypi.org/project/pluggy
    • Changelog: https://pyup.io/changelogs/pluggy/
    • Repo: https://github.com/pytest-dev/pluggy
    opened by pyup-bot 1
  • Update urllib3 to 1.25.1

    Update urllib3 to 1.25.1

    This PR updates urllib3 from 1.24.1 to 1.25.1.

    Changelog

    1.25.1

    -------------------
    
    * Add support for Google&#39;s ``Brotli`` package. (Pull 1572, Pull 1579)
    
    * Upgrade bundled rfc3986 to v1.3.1 (Pull 1578)
    

    1.25

    -----------------
    
    * Require and validate certificates by default when using HTTPS (Pull 1507)
    
    * Upgraded ``urllib3.utils.parse_url()`` to be RFC 3986 compliant. (Pull 1487)
    
    * Added support for ``key_password`` for ``HTTPSConnectionPool`` to use
    encrypted ``key_file`` without creating your own ``SSLContext`` object. (Pull 1489)
    
    * Add TLSv1.3 support to CPython, pyOpenSSL, and SecureTransport ``SSLContext``
    implementations. (Pull 1496)
    
    * Switched the default multipart header encoder from RFC 2231 to HTML 5 working draft. (Issue 303, PR 1492)
    
    * Fixed issue where OpenSSL would block if an encrypted client private key was
    given and no password was given. Instead an ``SSLError`` is raised. (Pull 1489)
    
    * Added support for Brotli content encoding. It is enabled automatically if
    ``brotlipy`` package is installed which can be requested with
    ``urllib3[brotli]`` extra. (Pull 1532)
    
    * Drop ciphers using DSS key exchange from default TLS cipher suites.
    Improve default ciphers when using SecureTransport. (Pull 1496)
    
    * Implemented a more efficient ``HTTPResponse.__iter__()`` method. (Issue 1483)
    

    1.24.2

    -------------------
    
    * Don&#39;t load system certificates by default when any other ``ca_certs``, ``ca_certs_dir`` or
    ``ssl_context`` parameters are specified.
    
    * Remove Authorization header regardless of case when redirecting to cross-site. (Issue 1510)
    
    * Add support for IPv6 addresses in subjectAltName section of certificates. (Issue 1269)
    
    Links
    • PyPI: https://pypi.org/project/urllib3
    • Changelog: https://pyup.io/changelogs/urllib3/
    • Docs: https://urllib3.readthedocs.io/
    opened by pyup-bot 1
  • Update urllib3 to 1.25

    Update urllib3 to 1.25

    This PR updates urllib3 from 1.24.1 to 1.25.

    Changelog

    1.25

    -----------------
    
    * Require and validate certificates by default when using HTTPS (Pull 1507)
    
    * Upgraded ``urllib3.utils.parse_url()`` to be RFC 3986 compliant. (Pull 1487)
    
    * Added support for ``key_password`` for ``HTTPSConnectionPool`` to use
    encrypted ``key_file`` without creating your own ``SSLContext`` object. (Pull 1489)
    
    * Add TLSv1.3 support to CPython, pyOpenSSL, and SecureTransport ``SSLContext``
    implementations. (Pull 1496)
    
    * Switched the default multipart header encoder from RFC 2231 to HTML 5 working draft. (Issue 303, PR 1492)
    
    * Fixed issue where OpenSSL would block if an encrypted client private key was
    given and no password was given. Instead an ``SSLError`` is raised. (Pull 1489)
    
    * Added support for Brotli content encoding. It is enabled automatically if
    ``brotlipy`` package is installed which can be requested with
    ``urllib3[brotli]`` extra. (Pull 1532)
    
    * Drop ciphers using DSS key exchange from default TLS cipher suites.
    Improve default ciphers when using SecureTransport. (Pull 1496)
    
    * Implemented a more efficient ``HTTPResponse.__iter__()`` method. (Issue 1483)
    

    1.24.2

    -------------------
    
    * Don&#39;t load system certificates by default when any other ``ca_certs``, ``ca_certs_dir`` or
    ``ssl_context`` parameters are specified.
    
    * Remove Authorization header regardless of case when redirecting to cross-site. (Issue 1510)
    
    * Add support for IPv6 addresses in subjectAltName section of certificates. (Issue 1269)
    
    Links
    • PyPI: https://pypi.org/project/urllib3
    • Changelog: https://pyup.io/changelogs/urllib3/
    • Docs: https://urllib3.readthedocs.io/
    opened by pyup-bot 1
  • Update urllib3 to 1.24.2

    Update urllib3 to 1.24.2

    This PR updates urllib3 from 1.24.1 to 1.24.2.

    The bot wasn't able to find a changelog for this release. Got an idea?

    Links
    • PyPI: https://pypi.org/project/urllib3
    • Changelog: https://pyup.io/changelogs/urllib3/
    • Docs: https://urllib3.readthedocs.io/
    opened by pyup-bot 1
  • Update sqlalchemy to 1.3.2

    Update sqlalchemy to 1.3.2

    This PR updates SQLAlchemy from 1.2.17 to 1.3.2.

    Changelog

    1.3.2

    :released: April 2, 2019
    
     .. change::
        :tags: bug, documentation, sql
        :tickets: 4580
    
        Thanks to :ref:`change_3981`, we no longer need to rely on recipes that
        subclass dialect-specific types directly, :class:`.TypeDecorator` can now
        handle all cases.   Additionally, the above change made it slightly less
        likely that a direct subclass of a base SQLAlchemy type would work as
        expected, which could be misleading.  Documentation has been updated to use
        :class:`.TypeDecorator` for these examples including the PostgreSQL
        &quot;ArrayOfEnum&quot; example datatype and direct support for the &quot;subclass a type
        directly&quot; has been removed.
    
     .. change::
        :tags: bug, postgresql
        :tickets: 4550
    
        Modified the :paramref:`.Select.with_for_update.of` parameter so that if a
        join or other composed selectable is passed, the individual :class:`.Table`
        objects will be filtered from it, allowing one to pass a join() object to
        the parameter, as occurs normally when using joined table inheritance with
        the ORM.  Pull request courtesy Raymond Lu.
    
    
     .. change::
         :tags: feature, postgresql
         :tickets: 4562
    
         Added support for parameter-less connection URLs for the psycopg2 dialect,
         meaning, the URL can be passed to :func:`.create_engine` as
         ``&quot;postgresql+psycopg2://&quot;`` with no additional arguments to indicate an
         empty DSN passed to libpq, which indicates to connect to &quot;localhost&quot; with
         no username, password, or database given. Pull request courtesy Julian
         Mehnle.
    
     .. change::
        :tags: bug, orm, ext
        :tickets: 4574, 4573
    
        Restored instance-level support for plain Python descriptors, e.g.
        ``property`` objects, in conjunction with association proxies, in that if
        the proxied object is not within ORM scope at all, it gets classified as
        &quot;ambiguous&quot; but is proxed directly.  For class level access, a basic class
        level``__get__()`` now returns the
        :class:`.AmbiguousAssociationProxyInstance` directly, rather than raising
        its exception, which is the closest approximation to the previous behavior
        that returned the :class:`.AssociationProxy` itself that&#39;s possible.  Also
        improved the stringification of these objects to be more descriptive of
        current state.
    
     .. change::
        :tags: bug, orm
        :tickets: 4537
    
        Fixed bug where use of :func:`.with_polymorphic` or other aliased construct
        would not properly adapt when the aliased target were used as the
        :meth:`.Select.correlate_except` target of a subquery used inside of a
        :func:`.column_property`. This required a fix to the clause adaption
        mechanics to properly handle a selectable that shows up in the &quot;correlate
        except&quot; list, in a similar manner as which occurs for selectables that show
        up in the &quot;correlate&quot; list.  This is ultimately a fairly fundamental bug
        that has lasted for a long time but it is hard to come across it.
    
    
     .. change::
        :tags: bug, orm
        :tickets: 4566
    
        Fixed regression where a new error message that was supposed to raise when
        attempting to link a relationship option to an AliasedClass without using
        :meth:`.PropComparator.of_type` would instead raise an ``AttributeError``.
        Note that in 1.3, it is no longer valid to create an option path from a
        plain mapper relationship to an :class:`.AliasedClass` without using
        :meth:`.PropComparator.of_type`.
    
    .. changelog::
    

    1.3.1

    :released: March 9, 2019
    
     .. change::
        :tags: bug, mssql
        :tickets: 4525
    
        Fixed regression in SQL Server reflection due to :ticket:`4393` where the
        removal of open-ended ``**kw`` from the :class:`.Float` datatype caused
        reflection of this type to fail due to a &quot;scale&quot; argument being passed.
    
     .. change::
        :tags: bug, orm, ext
        :tickets: 4522
    
        Fixed regression where an association proxy linked to a synonym would no
        longer work, both at instance level and at class level.
    
    .. changelog::
    

    1.3.0

    :released: March 4, 2019
    
     .. change::
        :tags: feature, schema
        :tickets: 4517
    
        Added new parameters :paramref:`.Table.resolve_fks` and
        :paramref:`.MetaData.reflect.resolve_fks` which when set to False will
        disable the automatic reflection of related tables encountered in
        :class:`.ForeignKey` objects, which can both reduce SQL overhead for omitted
        tables as well as avoid tables that can&#39;t be reflected for database-specific
        reasons.  Two :class:`.Table` objects present in the same :class:`.MetaData`
        collection can still refer to each other even if the reflection of the two
        tables occurred separately.
    
    
     .. change::
        :tags: feature, orm
        :tickets: 4316
    
        The :meth:`.Query.get` method can now accept a dictionary of attribute keys
        and values as a means of indicating the primary key value to load; is
        particularly useful for composite primary keys.  Pull request courtesy
        Sanjana S.
    
     .. change::
        :tags: feature, orm
        :tickets: 3133
    
        A SQL expression can now be assigned to a primary key attribute for an ORM
        flush in the same manner as ordinary attributes as described in
        :ref:`flush_embedded_sql_expressions` where the expression will be evaulated
        and then returned to the ORM using RETURNING, or in the case of pysqlite,
        works using the cursor.lastrowid attribute.Requires either a database that
        supports RETURNING (e.g. Postgresql, Oracle, SQL Server) or pysqlite.
    
     .. change::
        :tags: bug, sql
        :tickets: 4509
    
        The :class:`.Alias` class and related subclasses :class:`.CTE`,
        :class:`.Lateral` and :class:`.TableSample` have been reworked so that it is
        not possible for a user to construct the objects directly.  These constructs
        require that the standalone construction function or selectable-bound method
        be used to instantiate new objects.
    
    
     .. change::
        :tags: feature, engine
        :tickets: 4500
    
        Revised the formatting for :class:`.StatementError` when stringified. Each
        error detail is broken up over multiple newlines instead of spaced out on a
        single line.  Additionally, the SQL representation now stringifies the SQL
        statement rather than using ``repr()``, so that newlines are rendered as is.
        Pull request courtesy Nate Clark.
    
        .. seealso::
    
             :ref:`change_4500`
    
    .. changelog::
    

    1.3.0b3

    :released: March 4, 2019
     :released: February 8, 2019
    
     .. change::
        :tags: bug, ext
        :tickets: 2642
    
        Implemented a more comprehensive assignment operation (e.g. &quot;bulk replace&quot;)
        when using association proxy with sets or dictionaries.  Fixes the problem
        of redundant proxy objects being created to replace the old ones, which
        leads to excessive events and SQL and in the case of unique constraints
        will cause the flush to fail.
    
        .. seealso::
    
           :ref:`change_2642`
    
     .. change::
         :tags: bug, postgresql
         :tickets: 4473
    
         Fixed issue where using an uppercase name for an index type (e.g. GIST,
         BTREE, etc. ) or an EXCLUDE constraint would treat it as an identifier to
         be quoted, rather than rendering it as is. The new behavior converts these
         types to lowercase and ensures they contain only valid SQL characters.
    
     .. change::
        :tags: bug, orm
        :tickets: 4469
    
        Improved the behavior of :func:`.orm.with_polymorphic` in conjunction with
        loader options, in particular wildcard operations as well as
        :func:`.orm.load_only`.  The polymorphic object will be more accurately
        targeted so that column-level options on the entity will correctly take
        effect.The issue is a continuation of the same kinds of things fixed in
        :ticket:`4468`.
    
    
     .. change::
        :tags: bug, sql
        :tickets: 4481
    
        Fully removed the behavior of strings passed directly as components of a
        :func:`.select` or :class:`.Query` object being coerced to :func:`.text`
        constructs automatically; the warning that has been emitted is now an
        ArgumentError or in the case of order_by() / group_by() a CompileError.
        This has emitted a warning since version 1.0 however its presence continues
        to create concerns for the potential of mis-use of this behavior.
    
        Note that public CVEs have been posted for order_by() / group_by() which
        are resolved by this commit:  CVE-2019-7164  CVE-2019-7548
    
    
        .. seealso::
    
         :ref:`change_4481`
    
     .. change::
        :tags: bug, sql
        :tickets: 4467
    
        Quoting is applied to :class:`.Function` names, those which are usually but
        not necessarily generated from the :attr:`.sql.func` construct,  at compile
        time if they contain illegal characters, such as spaces or punctuation. The
        names are as before treated as case insensitive however, meaning if the
        names contain uppercase or mixed case characters, that alone does not
        trigger quoting. The case insensitivity is currently maintained for
        backwards compatibility.
    
    
     .. change::
        :tags: bug, sql
        :tickets: 4481
    
        Added &quot;SQL phrase validation&quot; to key DDL phrases that are accepted as plain
        strings, including :paramref:`.ForeignKeyConstraint.on_delete`,
        :paramref:`.ForeignKeyConstraint.on_update`,
        :paramref:`.ExcludeConstraint.using`,
        :paramref:`.ForeignKeyConstraint.initially`, for areas where a series of SQL
        keywords only are expected.Any non-space characters that suggest the phrase
        would need to be quoted will raise a :class:`.CompileError`.   This change
        is related to the series of changes committed as part of :ticket:`4481`.
    
     .. change::
        :tags: bug, orm, declarative
        :tickets: 4470
    
        Added some helper exceptions that invoke when a mapping based on
        :class:`.AbstractConcreteBase`, :class:`.DeferredReflection`, or
        :class:`.AutoMap` is used before the mapping is ready to be used, which
        contain descriptive information on the class, rather than falling through
        into other failure modes that are less informative.
    
    
     .. change::
        :tags: change, tests
        :tickets: 4460
    
        The test system has removed support for Nose, which is unmaintained for
        several years and is producing warnings under Python 3. The test suite is
        currently standardized on Pytest.  Pull request courtesy Parth Shandilya.
    
    .. changelog::
    

    1.3.0b2

    :released: March 4, 2019
     :released: January 25, 2019
    
     .. change::
        :tags: bug, ext
        :tickets: 4401
    
        Fixed a regression in 1.3.0b1 caused by :ticket:`3423` where association
        proxy objects that access an attribute that&#39;s only present on a polymorphic
        subclass would raise an ``AttributeError`` even though the actual instance
        being accessed was an instance of that subclass.
    
     .. change::
         :tags: bug, orm
         :tickets: 1103
    
         Fixed long-standing issue where duplicate collection members would cause a
         backref to delete the association between the member and its parent object
         when one of the duplicates were removed, as occurs as a side effect of
         swapping two objects in one statement.
    
         .. seealso::
    
             :ref:`change_1103`
    
     .. change::
        :tags: bug, mssql
        :tickets: 4442
    
        The ``literal_processor`` for the :class:`.Unicode` and
        :class:`.UnicodeText` datatypes now render an ``N`` character in front of
        the literal string expression as required by SQL Server for Unicode string
        values rendered in SQL expressions.
    
     .. change::
        :tags: feature, orm
        :tickets: 4423
    
        Implemented a new feature whereby the :class:`.AliasedClass` construct can
        now be used as the target of a :func:`.relationship`.  This allows the
        concept of &quot;non primary mappers&quot; to no longer be necessary, as the
        :class:`.AliasedClass` is much easier to configure and automatically inherits
        all the relationships of the mapped class, as well as preserves the
        ability for loader options to work normally.
    
        .. seealso::
    
             :ref:`change_4423`
    
     .. change::
        :tags: bug, orm
        :tickets: 4373
    
        Extended the fix first made as part of :ticket:`3287`, where a loader option
        made against a subclass using a wildcard would extend itself to include
        application of the wildcard to attributes on the super classes as well, to a
        &quot;bound&quot; loader option as well, e.g. in an expression like
        ``Load(SomeSubClass).load_only(&#39;foo&#39;)``.  Columns that are part of the
        parent class of ``SomeSubClass`` will also be excluded in the same way as if
        the unbound option ``load_only(&#39;foo&#39;)`` were used.
    
     .. change::
        :tags: bug, orm
        :tickets: 4433
    
        Improved error messages emitted by the ORM in the area of loader option
        traversal.  This includes early detection of mis-matched loader strategies
        along with a clearer explanation why these strategies don&#39;t match.
    
    
     .. change::
        :tags: change, orm
        :tickets: 4412
    
        Added a new function :func:`.close_all_sessions` which takes
        over the task of the :meth:`.Session.close_all` method, which
        is now deprecated as this is confusing as a classmethod.
        Pull request courtesy Augustin Trancart.
    
     .. change::
        :tags: feature, orm
        :tickets: 4397
    
        Added new :meth:`.MapperEvents.before_mapper_configured` event.   This
        event complements the other &quot;configure&quot; stage mapper events with a per
        mapper event that receives each :class:`.Mapper` right before its
        configure step, and additionally may be used to prevent or delay the
        configuration of specific :class:`.Mapper` objects using a new
        return value :attr:`.orm.interfaces.EXT_SKIP`.  See the
        documentation link for an example.
    
        .. seealso::
    
           :meth:`.MapperEvents.before_mapper_configured`
    
    
    
     .. change::
        :tags: bug, orm
    
        The &quot;remove&quot; event for collections is now called before the item is removed
        in the case of the ``collection.remove()`` method, as is consistent with the
        behavior for most other forms of collection item removal (such as
        ``__delitem__``, replacement under ``__setitem__``).  For ``pop()`` methods,
        the remove event still fires after the operation.
    
     .. change::
         :tags: bug, orm declarative
         :tickets: 4372
    
        Added a ``__clause_element__()`` method to :class:`.ColumnProperty` which
        can allow the usage of a not-fully-declared column or deferred attribute in
        a declarative mapped class slightly more friendly when it&#39;s used in a
        constraint or other column-oriented scenario within the class declaration,
        though this still can&#39;t work in open-ended expressions; prefer to call the
        :attr:`.ColumnProperty.expression` attribute if receiving ``TypeError``.
    
     .. change::
        :tags: bug, orm, engine
        :tickets: 4464
    
        Added accessors for execution options to Core and ORM, via
        :meth:`.Query.get_execution_options`,
        :meth:`.Connection.get_execution_options`,
        :meth:`.Engine.get_execution_options`, and
        :meth:`.Executable.get_execution_options`.  PR courtesy Daniel Lister.
    
     .. change::
        :tags: bug, orm
        :tickets: 4446
    
        Fixed issue in association proxy due to :ticket:`3423` which caused the use
        of custom :class:`.PropComparator` objects with hybrid attribites, such as
        the one demonstrated in  the ``dictlike-polymorphic`` example to not
        function within an association proxy.  The strictness that was added in
        :ticket:`3423` has been relaxed, and additional logic to accomodate for
        an association proxy that links to a custom hybrid have been added.
    
     .. change::
        :tags: change, general
        :tickets: 4393
    
        A large change throughout the library has ensured that all objects,
        parameters, and behaviors which have been noted as deprecated or legacy now
        emit ``DeprecationWarning`` warnings when invoked.As the Python 3
        interpreter now defaults to displaying deprecation warnings, as well as that
        modern test suites based on tools like tox and pytest tend to display
        deprecation warnings, this change should make it easier to note what API
        features are obsolete. A major rationale for this change is so that long-
        deprecated features that nonetheless still see continue to see real world
        use can  finally be removed in the near future; the biggest example of this
        are the :class:`.SessionExtension` and :class:`.MapperExtension` classes as
        well as a handful of other pre-event extension hooks, which have been
        deprecated since version 0.7 but still remain in the library.  Another is
        that several major longstanding behaviors are to be deprecated as well,
        including the threadlocal engine strategy, the convert_unicode flag, and non
        primary mappers.
    
        .. seealso::
    
           :ref:`change_4393_general`
    
    
     .. change::
        :tags: change, engine
        :tickets: 4393
    
        The &quot;threadlocal&quot; engine strategy which has been a legacy feature of
        SQLAlchemy since around version 0.2 is now deprecated, along with the
        :paramref:`.Pool.threadlocal` parameter of :class:`.Pool` which has no
        effect in most modern use cases.
    
        .. seealso::
    
           :ref:`change_4393_threadlocal`
    
     .. change::
        :tags: change, sql
        :tickets: 4393
    
        The :paramref:`.create_engine.convert_unicode` and
        :paramref:`.String.convert_unicode` parameters have been deprecated.  These
        parameters were built back when most Python DBAPIs had little to no support
        for Python Unicode objects, and SQLAlchemy needed to take on the very
        complex task of marshalling data and SQL strings between Unicode and
        bytestrings throughout the system in a performant way.  Thanks to Python 3,
        DBAPIs were compelled to adapt to Unicode-aware APIs and today all DBAPIs
        supported by SQLAlchemy support Unicode natively, including on Python 2,
        allowing this long-lived and very complicated feature to finally be (mostly)
        removed.  There are still of course a few Python 2 edge cases where
        SQLAlchemy has to deal with Unicode however these are handled automatically;
        in modern use, there should be no need for end-user interaction with these
        flags.
    
        .. seealso::
    
           :ref:`change_4393_convertunicode`
    
     .. change::
        :tags: bug, orm
        :tickets: 3777
    
        Implemented the ``.get_history()`` method, which also implies availability
        of :attr:`.AttributeState.history`, for :func:`.synonym` attributes.
        Previously, trying to access attribute history via a synonym would raise an
        ``AttributeError``.
    
     .. change::
        :tags: feature, engine
        :tickets: 3689
    
        Added public accessor :meth:`.QueuePool.timeout` that returns the configured
        timeout for a :class:`.QueuePool` object.  Pull request courtesy Irina Delamare.
    
     .. change::
        :tags: feature, sql
        :tickets: 4386
    
        Amended the :class:`.AnsiFunction` class, the base of common SQL
        functions like ``CURRENT_TIMESTAMP``, to accept positional arguments
        like a regular ad-hoc function.  This to suit the case that many of
        these functions on specific backends accept arguments such as
        &quot;fractional seconds&quot; precision and such.  If the function is created
        with arguments, it renders the parenthesis and the arguments.  If
        no arguments are present, the compiler generates the non-parenthesized form.
    
    .. changelog::
    

    1.3.0b1

    :released: March 4, 2019
     :released: November 16, 2018
    
     .. change::
        :tags: bug, ext
        :tickets: 3423
    
        Reworked :class:`.AssociationProxy` to store state that&#39;s specific to a
        parent class in a separate object, so that a single
        :class:`.AssocationProxy` can serve for multiple parent classes, as is
        intrinsic to inheritance, without any ambiguity in the state returned by it.
        A new method :meth:`.AssociationProxy.for_class` is added to allow
        inspection of class-specific state.
    
        .. seealso::
    
             :ref:`change_3423`
    
    
     .. change::
        :tags: bug, oracle
        :tickets: 4369
    
        Updated the parameters that can be sent to the cx_Oracle DBAPI to both allow
        for all current parameters as well as for future parameters not added yet.
        In addition, removed unused parameters that were deprecated in version 1.2,
        and additionally we are now defaulting &quot;threaded&quot; to False.
    
        .. seealso::
    
           :ref:`change_4369`
    
     .. change::
         :tags: bug, oracle
         :tickets: 4242
    
         The Oracle dialect will no longer use the NCHAR/NCLOB datatypes
         represent generic unicode strings or clob fields in conjunction with
         :class:`.Unicode` and :class:`.UnicodeText` unless the flag
         ``use_nchar_for_unicode=True`` is passed to :func:`.create_engine` -
         this includes CREATE TABLE behavior as well as ``setinputsizes()`` for
         bound parameters.   On the read side, automatic Unicode conversion under
         Python 2 has been added to CHAR/VARCHAR/CLOB result rows, to match the
         behavior of cx_Oracle under Python 3.  In order to mitigate the performance
         hit under Python 2, SQLAlchemy&#39;s very performant (when C extensions
         are built) native Unicode handlers are used under Python 2.
    
         .. seealso::
    
             :ref:`change_4242`
    
     .. change::
         :tags: bug, orm
         :tickets: 3844
    
         Fixed issue regarding passive_deletes=&quot;all&quot;, where the foreign key
         attribute of an object is maintained with its value even after the object
         is removed from its parent collection.  Previously, the unit of work would
         set this to NULL even though passive_deletes indicated it should not be
         modified.
    
         .. seealso::
    
             :ref:`change_3844`
    
     .. change::
         :tags: bug, ext
         :tickets: 4268
    
         The long-standing behavior of the association proxy collection maintaining
         only a weak reference to the parent object is reverted; the proxy will now
         maintain a strong reference to the parent for as long as the proxy
         collection itself is also in memory, eliminating the &quot;stale association
         proxy&quot; error. This change is being made on an experimental basis to see if
         any use cases arise where it causes side effects.
    
         .. seealso::
    
             :ref:`change_4268`
    
    
     .. change::
         :tags: bug, sql
         :tickets: 4302
    
         Added &quot;like&quot; based operators as &quot;comparison&quot; operators, including
         :meth:`.ColumnOperators.startswith` :meth:`.ColumnOperators.endswith`
         :meth:`.ColumnOperators.ilike` :meth:`.ColumnOperators.notilike` among many
         others, so that all of these operators can be the basis for an ORM
         &quot;primaryjoin&quot; condition.
    
    
     .. change::
         :tags: feature, sqlite
         :tickets: 3850
    
         Added support for SQLite&#39;s json functionality via the new
         SQLite implementation for :class:`.types.JSON`, :class:`.sqlite.JSON`.
         The name used for the type is ``JSON``, following an example found at
         SQLite&#39;s own documentation. Pull request courtesy Ilja Everilä.
    
         .. seealso::
    
             :ref:`change_3850`
    
     .. change::
        :tags: feature, engine
    
        Added new &quot;lifo&quot; mode to :class:`.QueuePool`, typically enabled by setting
        the flag :paramref:`.create_engine.pool_use_lifo` to True.   &quot;lifo&quot; mode
        means the same connection just checked in will be the first to be checked
        out again, allowing excess connections to be cleaned up from the server
        side during periods of the pool being only partially utilized.  Pull request
        courtesy Taem Park.
    
        .. seealso::
    
           :ref:`change_pr467`
    
     .. change::
        :tags: bug, orm
        :tickets: 4359
    
        Improved the behavior of a relationship-bound many-to-one object expression
        such that the retrieval of column values on the related object are now
        resilient against the object being detached from its parent
        :class:`.Session`, even if the attribute has been expired.  New features
        within the :class:`.InstanceState` are used to memoize the last known value
        of a particular column attribute before its expired, so that the expression
        can still evaluate when the object is detached and expired at the same
        time.  Error conditions are also improved using modern attribute state
        features to produce more specific messages as needed.
    
        .. seealso::
    
             :ref:`change_4359`
    
     .. change::
         :tags: feature, mysql
         :tickets: 4219
    
         Support added for the &quot;WITH PARSER&quot; syntax of CREATE FULLTEXT INDEX
         in MySQL, using the ``mysql_with_parser`` keyword argument.  Reflection
         is also supported, which accommodates MySQL&#39;s special comment format
         for reporting on this option as well.  Additionally, the &quot;FULLTEXT&quot; and
         &quot;SPATIAL&quot; index prefixes are now reflected back into the ``mysql_prefix``
         index option.
    
    
    
     .. change::
         :tags: bug, orm, mysql, postgresql
         :tickets: 4246
    
         The ORM now doubles the &quot;FOR UPDATE&quot; clause within the subquery that
         renders in conjunction with joined eager loading in some cases, as it has
         been observed that MySQL does not lock the rows from a subquery.   This
         means the query renders with two FOR UPDATE clauses; note that on some
         backends such as Oracle, FOR UPDATE clauses on subqueries are silently
         ignored since they are unnecessary.  Additionally, in the case of the &quot;OF&quot;
         clause used primarily with PostgreSQL, the FOR UPDATE is rendered only on
         the inner subquery when this is used so that the selectable can be targeted
         to the table within the SELECT statement.
    
         .. seealso::
    
             :ref:`change_4246`
    
     .. change::
         :tags: feature, mssql
         :tickets: 4158
    
         Added ``fast_executemany=True`` parameter to the SQL Server pyodbc dialect,
         which enables use of pyodbc&#39;s new performance feature of the same name
         when using Microsoft ODBC drivers.
    
         .. seealso::
    
             :ref:`change_4158`
    
     .. change::
         :tags: bug, ext
         :tickets: 4308
    
         Fixed multiple issues regarding de-association of scalar objects with the
         association proxy.  ``del`` now works, and additionally a new flag
         :paramref:`.AssociationProxy.cascade_scalar_deletes` is added, which when
         set to True indicates that setting a scalar attribute to ``None`` or
         deleting via ``del`` will also set the source association to ``None``.
    
         .. seealso::
    
             :ref:`change_4308`
    
    
     .. change::
         :tags: feature, ext
         :tickets: 4318
    
         Added new feature :meth:`.BakedQuery.to_query`, which allows for a
         clean way of using one :class:`.BakedQuery` as a subquery inside of another
         :class:`.BakedQuery` without needing to refer explicitly to a
         :class:`.Session`.
    
    
     .. change::
        :tags: feature, sqlite
        :tickets: 4360
    
        Implemented the SQLite ``ON CONFLICT`` clause as understood at the DDL
        level, e.g. for primary key, unique, and CHECK constraints as well as
        specified on a :class:`.Column` to satisfy inline primary key and NOT NULL.
        Pull request courtesy Denis Kataev.
    
        .. seealso::
    
           :ref:`change_4360`
    
     .. change::
        :tags: feature, postgresql
        :tickets: 4237
    
        Added rudimental support for reflection of PostgreSQL
        partitioned tables, e.g. that relkind=&#39;p&#39; is added to reflection
        queries that return table information.
    
        .. seealso::
    
             :ref:`change_4237`
    
     .. change::
        :tags: feature, ext
        :tickets: 4351
    
        The :class:`.AssociationProxy` now has standard column comparison operations
        such as :meth:`.ColumnOperators.like` and
        :meth:`.ColumnOperators.startswith` available when the target attribute is a
        plain column - the EXISTS expression that joins to the target table is
        rendered as usual, but the column expression is then use within the WHERE
        criteria of the EXISTS.  Note that this alters the behavior of the
        ``.contains()`` method on the association proxy to make use of
        :meth:`.ColumnOperators.contains` when used on a column-based attribute.
    
        .. seealso::
    
           :ref:`change_4351`
    
    
     .. change::
         :tags: feature, orm
    
         Added new flag :paramref:`.Session.bulk_save_objects.preserve_order` to the
         :meth:`.Session.bulk_save_objects` method, which defaults to True. When set
         to False, the given mappings will be grouped into inserts and updates per
         each object type, to allow for greater opportunities to batch common
         operations together.  Pull request courtesy Alessandro Cucci.
    
     .. change::
         :tags: bug, orm
         :tickets: 4365
    
         Refactored :meth:`.Query.join` to further clarify the individual components
         of structuring the join. This refactor adds the ability for
         :meth:`.Query.join` to determine the most appropriate &quot;left&quot; side of the
         join when there is more than one element in the FROM list or the query is
         against multiple entities.  If more than one FROM/entity matches, an error
         is raised that asks for an ON clause to be specified to resolve the
         ambiguity.  In particular this targets the regression we saw in
         :ticket:`4363` but is also of general use.   The codepaths within
         :meth:`.Query.join` are now easier to follow and the error cases are
         decided more specifically at an earlier point in the operation.
    
         .. seealso::
    
             :ref:`change_4365`
    
     .. change::
         :tags: bug, sql
         :tickets: 3981
    
         Fixed issue with :meth:`.TypeEngine.bind_expression` and
         :meth:`.TypeEngine.column_expression` methods where these methods would not
         work if the target type were part of a :class:`.Variant`, or other target
         type of a :class:`.TypeDecorator`.  Additionally, the SQL compiler now
         calls upon the dialect-level implementation when it renders these methods
         so that dialects can now provide for SQL-level processing for built-in
         types.
    
         .. seealso::
    
             :ref:`change_3981`
    
    
     .. change::
         :tags: bug, orm
         :tickets: 4304
    
         Fixed long-standing issue in :class:`.Query` where a scalar subquery such
         as produced by :meth:`.Query.exists`, :meth:`.Query.as_scalar` and other
         derivations from :attr:`.Query.statement` would not correctly be adapted
         when used in a new :class:`.Query` that required entity adaptation, such as
         when the query were turned into a union, or a from_self(), etc. The change
         removes the &quot;no adaptation&quot; annotation from the :func:`.select` object
         produced by the :attr:`.Query.statement` accessor.
    
     .. change::
         :tags: bug, orm, declarative
         :tickets: 4133
    
         Fixed bug where declarative would not update the state of the
         :class:`.Mapper` as far as what attributes were present, when additional
         attributes were added or removed after the mapper attribute collections had
         already been called and memoized.  Addtionally, a ``NotImplementedError``
         is now raised if a fully mapped attribute (e.g. column, relationship, etc.)
         is deleted from a class that is currently mapped, since the mapper will not
         function correctly if the attribute has been removed.
    
     .. change::
        :tags: bug, mssql
        :tickets: 4362
    
        Deprecated the use of :class:`.Sequence` with SQL Server in order to affect
        the &quot;start&quot; and &quot;increment&quot; of the IDENTITY value, in favor of new
        parameters ``mssql_identity_start`` and ``mssql_identity_increment`` which
        set these parameters directly.  :class:`.Sequence` will be used to generate
        real ``CREATE SEQUENCE`` DDL with SQL Server in a future release.
    
        .. seealso::
    
             :ref:`change_4362`
    
    
     .. change::
         :tags: feature, mysql
    
         Added support for the parameters in an ON DUPLICATE KEY UPDATE statement on
         MySQL to be ordered, since parameter order in a MySQL UPDATE clause is
         significant, in a similar manner as that described at
         :ref:`updates_order_parameters`.  Pull request courtesy Maxim Bublis.
    
         .. seealso::
    
             :ref:`change_mysql_ondupordering`
    
     .. change::
        :tags: feature, sql
        :tickets: 4144
    
        Added :class:`.Sequence` to the &quot;string SQL&quot; system that will render a
        meaningful string expression (``&quot;&lt;next sequence value: my_sequence&gt;&quot;``)
        when stringifying without a dialect a statement that includes a &quot;sequence
        nextvalue&quot; expression, rather than raising a compilation error.
    
    
    
     .. change::
         :tags: bug, orm
         :tickets: 4232
    
         An informative exception is re-raised when a primary key value is not
         sortable in Python during an ORM flush under Python 3, such as an ``Enum``
         that has no ``__lt__()`` method; normally Python 3 raises a ``TypeError``
         in this case.   The flush process sorts persistent objects by primary key
         in Python so the values must be sortable.
    
    
     .. change::
        :tags: orm, bug
        :tickets: 3604
    
        Removed the collection converter used by the :class:`.MappedCollection`
        class. This converter was used only to assert that the incoming dictionary
        keys matched that of their corresponding objects, and only during a bulk set
        operation.  The converter can interfere with a custom validator or
        :meth:`.AttributeEvents.bulk_replace` listener that wants to convert
        incoming values further.  The ``TypeError`` which would be raised by this
        converter when an incoming key didn&#39;t match the value is removed; incoming
        values during a bulk assignment will be keyed to their value-generated key,
        and not the key that&#39;s explicitly present in the dictionary.
    
        Overall, converter is superseded by the
        :meth:`.AttributeEvents.bulk_replace` event handler added as part of
        :ticket:`3896`.
    
     .. change::
        :tags: feature, sql
        :tickets: 3989
    
        Added new naming convention tokens ``column_0N_name``, ``column_0_N_name``,
        etc., which will render the names / keys / labels for all columns referenced
        by a particular constraint in a sequence.  In order to accommodate for the
        length of such a naming convention, the SQL compiler&#39;s auto-truncation
        feature now applies itself to constraint names as well, which creates a
        shortened, deterministically generated name for the constraint that will
        apply to a target backend without going over the character limit of that
        backend.
    
        The change also repairs two other issues.  One is that the  ``column_0_key``
        token wasn&#39;t available even though this token was documented, the other was
        that the ``referred_column_0_name`` token would  inadvertently render the
        ``.key`` and not the ``.name`` of the column if these two values were
        different.
    
        .. seealso::
    
           :ref:`change_3989`
    
    
     .. change::
         :tags: feature, ext
         :tickets: 4196
    
         Added support for bulk :meth:`.Query.update` and :meth:`.Query.delete`
         to the :class:`.ShardedQuery` class within the horizontal sharding
         extension.  This also adds an additional expansion hook to the
         bulk update/delete methods :meth:`.Query._execute_crud`.
    
         .. seealso::
    
             :ref:`change_4196`
    
     .. change::
         :tags: feature, sql
         :tickets: 4271
    
         Added new logic to the &quot;expanding IN&quot; bound parameter feature whereby if
         the given list is empty, a special &quot;empty set&quot; expression that is specific
         to different backends is generated, thus allowing IN expressions to be
         fully dynamic including empty IN expressions.
    
         .. seealso::
    
             :ref:`change_4271`
    
    
    
     .. change::
         :tags: feature, mysql
    
         The &quot;pre-ping&quot; feature of the connection pool now uses
         the ``ping()`` method of the DBAPI connection in the case of
         mysqlclient, PyMySQL and mysql-connector-python.  Pull request
         courtesy Maxim Bublis.
    
         .. seealso::
    
             :ref:`change_mysql_ping`
    
     .. change::
         :tags: feature, orm
         :tickets: 4340
    
         The &quot;selectin&quot; loader strategy now omits the JOIN in the case of a simple
         one-to-many load, where it instead relies loads only from the related
         table, relying upon the foreign key columns of the related table in order
         to match up to primary keys in the parent table.   This optimization can be
         disabled by setting the :paramref:`.relationship.omit_join` flag to False.
         Many thanks to Jayson Reis for the efforts on this.
    
         .. seealso::
    
             :ref:`change_4340`
    
     .. change::
        :tags: bug, orm
        :tickets: 4353
    
        Added new behavior to the lazy load that takes place when the &quot;old&quot; value of
        a many-to-one is retrieved, such that exceptions which would be raised due
        to either ``lazy=&quot;raise&quot;`` or a detached session error are skipped.
    
        .. seealso::
    
         :ref:`change_4353`
    
     .. change::
         :tags: feature, sql
    
         The Python builtin ``dir()`` is now supported for a SQLAlchemy &quot;properties&quot;
         object, such as that of a Core columns collection (e.g. ``.c``),
         ``mapper.attrs``, etc.  Allows iPython autocompletion to work as well.
         Pull request courtesy Uwe Korn.
    
     .. change::
        :tags: feature, orm
        :tickets: 4257
    
        Added ``.info`` dictionary to the :class:`.InstanceState` class, the object
        that comes from calling :func:`.inspect` on a mapped object.
    
        .. seealso::
    
             :ref:`change_4257`
    
     .. change::
         :tags: feature, sql
         :tickets: 3831
    
         Added new feature :meth:`.FunctionElement.as_comparison` which allows a SQL
         function to act as a binary comparison operation that can work within the
         ORM.
    
         .. seealso::
    
             :ref:`change_3831`
    
     .. change::
        :tags: bug, orm
        :tickets: 4354
    
        A long-standing oversight in the ORM, the ``__delete__`` method for a many-
        to-one relationship was non-functional, e.g. for an operation such as ``del
        a.b``.  This is now implemented and is equivalent to setting the attribute
        to ``None``.
    
        .. seealso::
    
             :ref:`change_4354`
    

    1.2.18

    :released: February 15, 2019
    
     .. change::
        :tags: bug, orm
        :tickets: 4468
    
        Fixed a regression in 1.2 where a wildcard/load_only loader option would
        not work correctly against a loader path where of_type() were used to limit
        to a particular subclass.  The fix only works for of_type() of a simple
        subclass so far, not a with_polymorphic entity which will be addressed in a
        separate issue; it is unlikely this latter case was working previously.
    
    
     .. change::
        :tags: bug, orm
        :tickets: 4489
    
        Fixed fairly simple but critical issue where the
        :meth:`.SessionEvents.pending_to_persistent` event would be invoked for
        objects not just when they move from pending to persistent, but when they
        were also already persistent and just being updated, thus causing the event
        to be invoked for all objects on every update.
    
     .. change::
        :tags: bug, sql
        :tickets: 4485
    
        Fixed issue where the :class:`.JSON` type had a read-only
        :attr:`.JSON.should_evaluate_none` attribute, which would cause failures
        when making use of the :meth:`.TypeEngine.evaluates_none` method in
        conjunction with this type.  Pull request courtesy Sanjana S.
    
     .. change::
        :tags: bug, mssql
        :tickets: 4499
    
        Fixed bug where the SQL Server &quot;IDENTITY_INSERT&quot; logic that allows an INSERT
        to proceed with an explicit value on an IDENTITY column was not detecting
        the case where :meth:`.Insert.values` were used with a dictionary that
        contained a :class:`.Column` as key and a SQL expression as a value.
    
     .. change::
        :tags: bug, sqlite
        :tickets: 4474
    
        Fixed bug in SQLite DDL where using an expression as a server side default
        required that it be contained within parenthesis to be accepted by the
        sqlite parser.  Pull request courtesy Bartlomiej Biernacki.
    
     .. change::
        :tags: bug, mysql
        :tickets: 4492
    
        Fixed a second regression caused by :ticket:`4344` (the first was
        :ticket:`4361`), which works around MySQL issue 88718, where the lower
        casing function used was not correct for Python 2 with OSX/Windows casing
        conventions, which would then raise ``TypeError``.  Full coverage has been
        added to this logic so that every codepath is exercised in a mock style for
        all three casing conventions on all versions of Python. MySQL 8.0 has
        meanwhile fixed issue 88718 so the workaround is only applies to a
        particular span of MySQL 8.0 versions.
    
    .. changelog::
    
    Links
    • PyPI: https://pypi.org/project/sqlalchemy
    • Changelog: https://pyup.io/changelogs/sqlalchemy/
    • Homepage: http://www.sqlalchemy.org
    opened by pyup-bot 1
  • Update pytest to 4.4.0

    Update pytest to 4.4.0

    This PR updates pytest from 4.3.0 to 4.4.0.

    Changelog

    4.4.0

    =========================
    
    Features
    --------
    
    - `2224 &lt;https://github.com/pytest-dev/pytest/issues/2224&gt;`_: ``async`` test functions are skipped and a warning is emitted when a suitable
    async plugin is not installed (such as ``pytest-asyncio`` or ``pytest-trio``).
    
    Previously ``async`` functions would not execute at all but still be marked as &quot;passed&quot;.
    
    
    - `2482 &lt;https://github.com/pytest-dev/pytest/issues/2482&gt;`_: Include new ``disable_test_id_escaping_and_forfeit_all_rights_to_community_support`` option to disable ascii-escaping in parametrized values. This may cause a series of problems and as the name makes clear, use at your own risk.
    
    
    - `4718 &lt;https://github.com/pytest-dev/pytest/issues/4718&gt;`_: The ``-p`` option can now be used to early-load plugins also by entry-point name, instead of just
    by module name.
    
    This makes it possible to early load external plugins like ``pytest-cov`` in the command-line::
    
       pytest -p pytest_cov
    
    
    - `4855 &lt;https://github.com/pytest-dev/pytest/issues/4855&gt;`_: The ``--pdbcls`` option handles classes via module attributes now (e.g.
    ``pdb:pdb.Pdb`` with `pdb++`_), and its validation was improved.
    
    .. _pdb++: https://pypi.org/project/pdbpp/
    
    
    - `4875 &lt;https://github.com/pytest-dev/pytest/issues/4875&gt;`_: The `testpaths &lt;https://docs.pytest.org/en/latest/reference.htmlconfval-testpaths&gt;`__ configuration option is now displayed next
    to the ``rootdir`` and ``inifile`` lines in the pytest header if the option is in effect, i.e., directories or file names were
    not explicitly passed in the command line.
    
    Also, ``inifile`` is only displayed if there&#39;s a configuration file, instead of an empty ``inifile:`` string.
    
    
    - `4911 &lt;https://github.com/pytest-dev/pytest/issues/4911&gt;`_: Doctests can be skipped now dynamically using ``pytest.skip()``.
    
    
    - `4920 &lt;https://github.com/pytest-dev/pytest/issues/4920&gt;`_: Internal refactorings have been made in order to make the implementation of the
    `pytest-subtests &lt;https://github.com/pytest-dev/pytest-subtests&gt;`__ plugin
    possible, which adds unittest sub-test support and a new ``subtests`` fixture as discussed in
    `1367 &lt;https://github.com/pytest-dev/pytest/issues/1367&gt;`__.
    
    For details on the internal refactorings, please see the details on the related PR.
    
    
    - `4931 &lt;https://github.com/pytest-dev/pytest/issues/4931&gt;`_: pytester&#39;s ``LineMatcher`` asserts that the passed lines are a sequence.
    
    
    - `4936 &lt;https://github.com/pytest-dev/pytest/issues/4936&gt;`_: Handle ``-p plug`` after ``-p no:plug``.
    
    This can be used to override a blocked plugin (e.g. in &quot;addopts&quot;) from the
    command line etc.
    
    
    - `4951 &lt;https://github.com/pytest-dev/pytest/issues/4951&gt;`_: Output capturing is handled correctly when only capturing via fixtures (capsys, capfs) with ``pdb.set_trace()``.
    
    
    - `4956 &lt;https://github.com/pytest-dev/pytest/issues/4956&gt;`_: ``pytester`` sets ``$HOME`` and ``$USERPROFILE`` to the temporary directory during test runs.
    
    This ensures to not load configuration files from the real user&#39;s home directory.
    
    
    - `4980 &lt;https://github.com/pytest-dev/pytest/issues/4980&gt;`_: Namespace packages are handled better with ``monkeypatch.syspath_prepend`` and ``testdir.syspathinsert`` (via ``pkg_resources.fixup_namespace_packages``).
    
    
    - `4993 &lt;https://github.com/pytest-dev/pytest/issues/4993&gt;`_: The stepwise plugin reports status information now.
    
    
    - `5008 &lt;https://github.com/pytest-dev/pytest/issues/5008&gt;`_: If a ``setup.cfg`` file contains ``[tool:pytest]`` and also the no longer supported ``[pytest]`` section, pytest will use ``[tool:pytest]`` ignoring ``[pytest]``. Previously it would unconditionally error out.
    
    This makes it simpler for plugins to support old pytest versions.
    
    
    
    Bug Fixes
    ---------
    
    - `1895 &lt;https://github.com/pytest-dev/pytest/issues/1895&gt;`_: Fix bug where fixtures requested dynamically via ``request.getfixturevalue()`` might be teardown
    before the requesting fixture.
    
    
    - `4851 &lt;https://github.com/pytest-dev/pytest/issues/4851&gt;`_: pytester unsets ``PYTEST_ADDOPTS`` now to not use outer options with ``testdir.runpytest()``.
    
    
    - `4903 &lt;https://github.com/pytest-dev/pytest/issues/4903&gt;`_: Use the correct modified time for years after 2038 in rewritten ``.pyc`` files.
    
    
    - `4928 &lt;https://github.com/pytest-dev/pytest/issues/4928&gt;`_: Fix line offsets with ``ScopeMismatch`` errors.
    
    
    - `4957 &lt;https://github.com/pytest-dev/pytest/issues/4957&gt;`_: ``-p no:plugin`` is handled correctly for default (internal) plugins now, e.g. with ``-p no:capture``.
    
    Previously they were loaded (imported) always, making e.g. the ``capfd`` fixture available.
    
    
    - `4968 &lt;https://github.com/pytest-dev/pytest/issues/4968&gt;`_: The pdb ``quit`` command is handled properly when used after the ``debug`` command with `pdb++`_.
    
    .. _pdb++: https://pypi.org/project/pdbpp/
    
    
    - `4975 &lt;https://github.com/pytest-dev/pytest/issues/4975&gt;`_: Fix the interpretation of ``-qq`` option where it was being considered as ``-v`` instead.
    
    
    - `4978 &lt;https://github.com/pytest-dev/pytest/issues/4978&gt;`_: ``outcomes.Exit`` is not swallowed in ``assertrepr_compare`` anymore.
    
    
    - `4988 &lt;https://github.com/pytest-dev/pytest/issues/4988&gt;`_: Close logging&#39;s file handler explicitly when the session finishes.
    
    
    - `5003 &lt;https://github.com/pytest-dev/pytest/issues/5003&gt;`_: Fix line offset with mark collection error (off by one).
    
    
    
    Improved Documentation
    ----------------------
    
    - `4974 &lt;https://github.com/pytest-dev/pytest/issues/4974&gt;`_: Update docs for ``pytest_cmdline_parse`` hook to note availability liminations
    
    
    
    Trivial/Internal Changes
    ------------------------
    
    - `4718 &lt;https://github.com/pytest-dev/pytest/issues/4718&gt;`_: ``pluggy&gt;=0.9`` is now required.
    
    
    - `4815 &lt;https://github.com/pytest-dev/pytest/issues/4815&gt;`_: ``funcsigs&gt;=1.0`` is now required for Python 2.7.
    
    
    - `4829 &lt;https://github.com/pytest-dev/pytest/issues/4829&gt;`_: Some left-over internal code related to ``yield`` tests has been removed.
    
    
    - `4890 &lt;https://github.com/pytest-dev/pytest/issues/4890&gt;`_: Remove internally unused ``anypython`` fixture from the pytester plugin.
    
    
    - `4912 &lt;https://github.com/pytest-dev/pytest/issues/4912&gt;`_: Remove deprecated Sphinx directive, ``add_description_unit()``,
    pin sphinx-removed-in to &gt;= 0.2.0 to support Sphinx 2.0.
    
    
    - `4913 &lt;https://github.com/pytest-dev/pytest/issues/4913&gt;`_: Fix pytest tests invocation with custom ``PYTHONPATH``.
    
    
    - `4965 &lt;https://github.com/pytest-dev/pytest/issues/4965&gt;`_: New ``pytest_report_to_serializable`` and ``pytest_report_from_serializable`` **experimental** hooks.
    
    These hooks will be used by ``pytest-xdist``, ``pytest-subtests``, and the replacement for
    resultlog to serialize and customize reports.
    
    They are experimental, meaning that their details might change or even be removed
    completely in future patch releases without warning.
    
    Feedback is welcome from plugin authors and users alike.
    
    
    - `4987 &lt;https://github.com/pytest-dev/pytest/issues/4987&gt;`_: ``Collector.repr_failure`` respects the ``--tb`` option, but only defaults to ``short`` now (with ``auto``).
    

    4.3.1

    =========================
    
    Bug Fixes
    ---------
    
    - `4810 &lt;https://github.com/pytest-dev/pytest/issues/4810&gt;`_: Logging messages inside ``pytest_runtest_logreport()`` are now properly captured and displayed.
    
    
    - `4861 &lt;https://github.com/pytest-dev/pytest/issues/4861&gt;`_: Improve validation of contents written to captured output so it behaves the same as when capture is disabled.
    
    
    - `4898 &lt;https://github.com/pytest-dev/pytest/issues/4898&gt;`_: Fix ``AttributeError: FixtureRequest has no &#39;confg&#39; attribute`` bug in ``testdir.copy_example``.
    
    
    
    Trivial/Internal Changes
    ------------------------
    
    - `4768 &lt;https://github.com/pytest-dev/pytest/issues/4768&gt;`_: Avoid pkg_resources import at the top-level.
    
    Links
    • PyPI: https://pypi.org/project/pytest
    • Changelog: https://pyup.io/changelogs/pytest/
    • Homepage: https://docs.pytest.org/en/latest/
    opened by pyup-bot 1
  • Update sphinx to 2.0.0

    Update sphinx to 2.0.0

    This PR updates Sphinx from 1.8.3 to 2.0.0.

    Changelog

    2.0.0

    ====================================
    
    Dependencies
    ------------
    
    * LaTeX builder now depends on TeX Live 2015 or above.
    * LaTeX builder (with ``&#39;pdflatex&#39;`` :confval:`latex_engine`) will process
    Unicode Greek letters in text (not in math mark-up) via the text font and
    will not escape them to math mark-up. See the discussion of the
    ``&#39;fontenc&#39;`` key of :confval:`latex_elements`; such (optional) support for
    Greek adds, for example on Ubuntu xenial, the ``texlive-lang-greek`` and (if
    default font set-up is not modified) ``cm-super(-minimal)`` as additional
    Sphinx LaTeX requirements.
    * LaTeX builder with :confval:`latex_engine` set to ``&#39;xelatex&#39;`` or to
    ``&#39;lualatex&#39;`` requires (by default) the ``FreeFont`` fonts,
    which in Ubuntu xenial are provided by package ``fonts-freefont-otf``, and
    e.g. in Fedora 29 via package ``texlive-gnu-freefont``.
    * requests 2.5.0 or above
    * The six package is no longer a dependency
    * The sphinxcontrib-websupport package is no longer a dependency
    * Some packages are separated to sub packages:
    
    - sphinxcontrib.applehelp
    - sphinxcontrib.devhelp
    - sphinxcontrib.htmlhelp
    - sphinxcontrib.jsmath
    - sphinxcontrib.serializinghtml
    - sphinxcontrib.qthelp
    
    Incompatible changes
    --------------------
    
    * Drop python 2.7 and 3.4 support
    * Drop docutils 0.11 support
    * The default setting for :confval:`master_doc` is changed to ``&#39;index&#39;`` which
    has been longly used as default of sphinx-quickstart.
    * LaTeX: Move message resources to ``sphinxmessage.sty``
    * LaTeX: Stop using ``\captions&lt;lang&gt;`` macro for some labels
    * LaTeX: for ``&#39;xelatex&#39;`` and ``&#39;lualatex&#39;``, use the ``FreeFont`` OpenType
    fonts as default choice (refs: 5645)
    * LaTeX: ``&#39;xelatex&#39;`` and ``&#39;lualatex&#39;`` now use ``\small`` in code-blocks
    (due to ``FreeMono`` character width) like ``&#39;pdflatex&#39;`` already did (due
    to ``Courier`` character width).  You may need to adjust this via
    :confval:`latex_elements` ``&#39;fvset&#39;`` key, in case of usage of some other
    OpenType fonts (refs: 5768)
    * LaTeX: Greek letters in text are not escaped to math mode mark-up, and they
    will use the text font not the math font. The ``LGR`` font encoding must be
    added to the ``&#39;fontenc&#39;`` key of :confval:`latex_elements` for this to work
    (only if it is needed by the document, of course).
    * LaTeX: setting the :confval:`language` to ``&#39;en&#39;`` triggered ``Sonny`` option
    of ``fncychap``, now it is ``Bjarne`` to match case of no language specified.
    (refs: 5772)
    * 5770: doctest: Follow :confval:`highlight_language` on highlighting doctest
    block.  As a result, they are highlighted as python3 by default.
    * The order of argument for ``HTMLTranslator``, ``HTML5Translator`` and
    ``ManualPageTranslator`` are changed
    * LaTeX: hard-coded redefinitions of ``\lsection`` and ``\lsubsection``
    formerly done during loading of ``&#39;manual&#39;`` docclass get executed later, at
    time of ``\sphinxtableofcontents``.  This means that custom user definitions
    from LaTeX preamble now get overwritten.  Use ``\sphinxtableofcontentshook``
    to insert custom user definitions.  See :ref:`latex-macros`.
    * quickstart: Simplify generated ``conf.py``
    * 4148: quickstart: some questions are removed.  They are still able to specify
    via command line options
    * websupport: unbundled from sphinx core. Please use sphinxcontrib-websupport
    * C++, the visibility of base classes is now always rendered as present in the
    input. That is, ``private`` is now shown, where it was ellided before.
    * LaTeX: graphics inclusion of oversized images rescales to not exceed
    the text width and height, even if width and/or height option were used.
    (refs: 5956)
    * epub: ``epub_title`` defaults to the :confval:`project` option
    * 4550: All tables and figures without ``align`` option are displayed to center
    * 4587: html: Output HTML5 by default
    
    Deprecated
    ----------
    
    * Support for evaluating Python 2 syntax is deprecated. This includes
    configuration files which should be converted to Python 3.
    * The arguments of ``EpubBuilder.build_mimetype()``,
    ``EpubBuilder.build_container()``, ``EpubBuilder.bulid_content()``,
    ``EpubBuilder.build_toc()`` and ``EpubBuilder.build_epub()``
    * The arguments of ``Epub3Builder.build_navigation_doc()``
    * The config variables
    
    - :confval:`html_experimental_html5_writer`
    
    * The ``encoding`` argument of ``autodoc.Documenter.get_doc()``,
    ``autodoc.DocstringSignatureMixin.get_doc()``,
    ``autodoc.DocstringSignatureMixin._find_signature()``, and
    ``autodoc.ClassDocumenter.get_doc()`` are deprecated.
    * The ``importer`` argument of ``sphinx.ext.autodoc.importer._MockModule``
    * The ``nodetype`` argument of ``sphinx.search.WordCollector.
    is_meta_keywords()``
    * The ``suffix`` argument of ``env.doc2path()`` is deprecated.
    * The string style ``base`` argument of ``env.doc2path()`` is deprecated.
    * The fallback to allow omitting the ``filename`` argument from an overridden
    ``IndexBuilder.feed()`` method is deprecated.
    * ``sphinx.addnodes.abbreviation``
    * ``sphinx.application.Sphinx._setting_up_extension``
    * ``sphinx.builders.epub3.Epub3Builder.validate_config_value()``
    * ``sphinx.builders.html.SingleFileHTMLBuilder``
    * ``sphinx.builders.htmlhelp.HTMLHelpBuilder.open_file()``
    * ``sphinx.cmd.quickstart.term_decode()``
    * ``sphinx.cmd.quickstart.TERM_ENCODING``
    * ``sphinx.config.check_unicode()``
    * ``sphinx.config.string_classes``
    * ``sphinx.domains.cpp.DefinitionError.description``
    * ``sphinx.domains.cpp.NoOldIdError.description``
    * ``sphinx.domains.cpp.UnsupportedMultiCharacterCharLiteral.decoded``
    * ``sphinx.ext.autodoc.importer._MockImporter``
    * ``sphinx.ext.autosummary.Autosummary.warn()``
    * ``sphinx.ext.autosummary.Autosummary.genopt``
    * ``sphinx.ext.autosummary.Autosummary.warnings``
    * ``sphinx.ext.autosummary.Autosummary.result``
    * ``sphinx.ext.doctest.doctest_encode()``
    * ``sphinx.io.SphinxBaseFileInput``
    * ``sphinx.io.SphinxFileInput.supported``
    * ``sphinx.io.SphinxRSTFileInput``
    * ``sphinx.registry.SphinxComponentRegistry.add_source_input()``
    * ``sphinx.roles.abbr_role()``
    * ``sphinx.roles.emph_literal_role()``
    * ``sphinx.roles.menusel_role()``
    * ``sphinx.roles.index_role()``
    * ``sphinx.roles.indexmarkup_role()``
    * ``sphinx.testing.util.remove_unicode_literal()``
    * ``sphinx.util.attrdict``
    * ``sphinx.util.force_decode()``
    * ``sphinx.util.get_matching_docs()``
    * ``sphinx.util.inspect.Parameter``
    * ``sphinx.util.jsonimpl``
    * ``sphinx.util.osutil.EEXIST``
    * ``sphinx.util.osutil.EINVAL``
    * ``sphinx.util.osutil.ENOENT``
    * ``sphinx.util.osutil.EPIPE``
    * ``sphinx.util.osutil.walk()``
    * ``sphinx.util.PeekableIterator``
    * ``sphinx.util.pycompat.NoneType``
    * ``sphinx.util.pycompat.TextIOWrapper``
    * ``sphinx.util.pycompat.UnicodeMixin``
    * ``sphinx.util.pycompat.htmlescape``
    * ``sphinx.util.pycompat.indent``
    * ``sphinx.util.pycompat.sys_encoding``
    * ``sphinx.util.pycompat.terminal_safe()``
    * ``sphinx.util.pycompat.u``
    * ``sphinx.writers.latex.ExtBabel``
    * ``sphinx.writers.latex.LaTeXTranslator._make_visit_admonition()``
    * ``sphinx.writers.latex.LaTeXTranslator.babel_defmacro()``
    * ``sphinx.writers.latex.LaTeXTranslator.collect_footnotes()``
    * ``sphinx.writers.latex.LaTeXTranslator.generate_numfig_format()``
    * ``sphinx.writers.texinfo.TexinfoTranslator._make_visit_admonition()``
    * ``sphinx.writers.text.TextTranslator._make_depart_admonition()``
    * template variables for LaTeX template
    
    - ``logo``
    - ``numfig_format``
    - ``pageautorefname``
    - ``translatablestrings``
    
    For more details, see :ref:`deprecation APIs list &lt;dev-deprecated-apis&gt;`.
    
    Features added
    --------------
    
    * 1618: The search results preview of generated HTML documentation is
    reader-friendlier: instead of showing the snippets as raw reStructuredText
    markup, Sphinx now renders the corresponding HTML.  This means the Sphinx
    extension `Sphinx: pretty search results`__ is no longer necessary.  Note that
    changes to the search function of your custom or 3rd-party HTML template might
    overwrite this improvement.
    
    __ https://github.com/sphinx-contrib/sphinx-pretty-searchresults
    
    * 4182: autodoc: Support :confval:`suppress_warnings`
    * 5533: autodoc: :confval:`autodoc_default_options` supports ``member-order``
    * 5394: autodoc: Display readable names in type annotations for mocked objects
    * 5459: autodoc: :confval:`autodoc_default_options` accepts ``True`` as a value
    * 1148: autodoc: Add :rst:dir:`autodecorator` directive for decorators
    * 5635: autosummary: Add :confval:`autosummary_mock_imports` to mock external
    libraries on importing targets
    * 4018: htmlhelp: Add :confval:`htmlhelp_file_suffix` and
    :confval:`htmlhelp_link_suffix`
    * 5559: text: Support complex tables (colspan and rowspan)
    * LaTeX: support rendering (not in math, yet) of Greek and Cyrillic Unicode
    letters in non-Cyrillic document even with ``&#39;pdflatex&#39;`` as
    :confval:`latex_engine` (refs: 5645)
    * 5660: The ``versionadded``, ``versionchanged`` and ``deprecated`` directives
    are now generated with their own specific CSS classes
    (``added``, ``changed`` and ``deprecated``, respectively) in addition to the
    generic ``versionmodified`` class.
    * 5841: apidoc: Add --extensions option to sphinx-apidoc
    * 4981: C++, added an alias directive for inserting lists of declarations,
    that references existing declarations (e.g., for making a synopsis).
    * C++: add ``cpp:struct`` to complement ``cpp:class``.
    * 1341 the HTML search considers words that contain a search term of length
    three or longer a match.
    * 4611: epub: Show warning for duplicated ToC entries
    * 1851: Allow to omit an argument for :rst:dir:`code-block` directive.  If
    omitted, it follows :rst:dir:`highlight` or :confval:`highlight_language`
    * 4587: html: Add :confval:`html4_writer` to use old HTML4 writer
    * 6016: HTML search: A placeholder for the search summary prevents search
    result links from changing their position when the search terminates.  This
    makes navigating search results easier.
    * 5196: linkcheck also checks remote images exist
    * 5924: githubpages: create CNAME file for custom domains when
    :confval:`html_baseurl` set
    * 4261: autosectionlabel: restrict the labeled sections by new config value;
    :confval:`autosectionlabel_maxdepth`
    
    
    Bugs fixed
    ----------
    
    * 1682: LaTeX: writer should not translate Greek unicode, but use textgreek
    package
    * 5247: LaTeX: PDF does not build with default font config for Russian
    language and ``&#39;xelatex&#39;`` or ``&#39;lualatex&#39;`` as :confval:`latex_engine`
    (refs: 5251)
    * 5248: LaTeX: Greek letters in section titles disappear from PDF bookmarks
    * 5249: LaTeX: Unicode Greek letters in math directive break PDF build
    (fix requires extra set-up, see :confval:`latex_elements` ``&#39;textgreek&#39;`` key
    and/or :confval:`latex_engine` setting)
    * 5772: LaTeX: should the Bjarne style of fncychap be used for English also
    if passed as language option?
    * 5179: LaTeX: (lualatex only) escaping of ``&gt;`` by ``\textgreater{}`` is not
    enough as ``\textgreater{}\textgreater{}`` applies TeX-ligature
    * LaTeX: project name is not escaped if :confval:`latex_documents` omitted
    * LaTeX: authors are not shown if :confval:`latex_documents` omitted
    * HTML: Invalid HTML5 file is generated for a glossary having multiple terms for
    one description (refs: 4611)
    * QtHelp: OS dependent path separator is used in .qhp file
    * HTML search: search always returns nothing when multiple search terms are
    used and one term is shorter than three characters
    
    Testing
    --------
    
    * Stop to use ``SPHINX_TEST_TEMPDIR`` envvar
    

    1.8.6

    Dependencies
    ------------
    
    Incompatible changes
    --------------------
    
    Deprecated
    ----------
    
    Features added
    --------------
    
    Bugs fixed
    ----------
    
    Testing
    --------
    

    1.8.5

    =====================================
    
    Bugs fixed
    ----------
    
    * LaTeX: Remove extraneous space after author names on PDF title page (refs: 6004)
    * 6026: LaTeX: A cross reference to definition list does not work
    * 6046: LaTeX: ``TypeError`` is raised when invalid latex_elements given
    * 6067: LaTeX: images having a target are concatenated to next line
    * 6067: LaTeX: images having a target are not aligned even if specified
    * 6149: LaTeX: ``:index:`` role in titles causes ``Use of \icentercr doesn&#39;t
    match its definition`` error on latexpdf build
    * 6019: imgconverter: Including multipage PDF fails
    * 6047: autodoc: ``autofunction`` emits a warning for method objects
    * 6028: graphviz: Ensure the graphviz filenames are reproducible
    * 6068: doctest: ``skipif`` option may remove the code block from documentation
    * 6136: ``:name:`` option for ``math`` directive causes a crash
    * 6139: intersphinx: ValueError on failure reporting
    * 6135: changes: Fix UnboundLocalError when any module found
    * 3859: manpage: code-block captions are not displayed correctly
    

    1.8.4

    =====================================
    
    Bugs fixed
    ----------
    
    * 3707: latex: no bold checkmark (✔) available.
    * 5605: with the documentation language set to Chinese, English words could not
    be searched.
    * 5889: LaTeX: user ``numfig_format`` is stripped of spaces and may cause
    build failure
    * C++, fix hyperlinks for declarations involving east cv-qualifiers.
    * 5755: C++, fix duplicate declaration error on function templates with constraints
    in the return type.
    * C++, parse unary right fold expressions and binary fold expressions.
    * pycode could not handle egg files on windows
    * 5928: KeyError: &#39;DOCUTILSCONFIG&#39; when running build
    * 5936: LaTeX: PDF build broken by inclusion of image taller than page height
    in an admonition
    * 5231: &quot;make html&quot; does not read and build &quot;po&quot; files in &quot;locale&quot; dir
    * 5954: ``:scale:`` image option may break PDF build if image in an admonition
    * 5966: mathjax has not been loaded on incremental build
    * 5960: LaTeX: modified PDF layout since September 2018 TeXLive update of
    :file:`parskip.sty`
    * 5948: LaTeX: duplicated labels are generated for sections
    * 5958: versionadded directive causes crash with Python 3.5.0
    * 5995: autodoc: autodoc_mock_imports conflict with metaclass on Python 3.7
    * 5871: texinfo: a section title ``.`` is not allowed
    
    Links
    • PyPI: https://pypi.org/project/sphinx
    • Changelog: https://pyup.io/changelogs/sphinx/
    • Homepage: http://sphinx-doc.org/
    opened by pyup-bot 1
  • Update autobahn to 19.3.2

    Update autobahn to 19.3.2

    This PR updates autobahn from 19.1.1 to 19.3.2.

    Changelog

    19.3.2

    ------
    
    * fix: import guards for flatbuffers (missed in CI as we run with &quot;all deps installed&quot; there)
    

    19.3.1

    ------
    
    * new: add experimental support for WAMP-FlatBuffers serializer: EVENT and PUBLISH messages for now only
    * new: add FlatBuffers schema for WAMP messages
    * fix: improve serializer package preference behavior depending on CPy vs PyPy
    * fix: relax protocol violations: ignore unknown INTERRUPT and GOODBYE already sent; reduce log noise
    * fix: skipping Yield message if transport gets closed before success callback is called (1119)
    * fix: integer division in logging in py3 (1120)
    * fix: Await tasks after they&#39;ve been cancelled in `autobahn.asycio.component.nicely_exit` (1116)
    

    19.2.1

    ------
    
    * fix: set announced roles on appsession object (1109)
    * new: lower log noise on ApplicationErrors (1107)
    * new: allow explicit passing of tx endpoint and reactor (1103)
    * new: add attribute to forward applicationrunner to applicationsession via componentconfig
    
    Links
    • PyPI: https://pypi.org/project/autobahn
    • Changelog: https://pyup.io/changelogs/autobahn/
    • Homepage: http://crossbar.io/autobahn
    opened by pyup-bot 1
  • Bump certifi from 2019.3.9 to 2022.12.7

    Bump certifi from 2019.3.9 to 2022.12.7

    Bumps certifi from 2019.3.9 to 2022.12.7.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump twisted from 22.4.0 to 22.10.0

    Bump twisted from 22.4.0 to 22.10.0

    Bumps twisted from 22.4.0 to 22.10.0.

    Release notes

    Sourced from twisted's releases.

    Twisted 22.10.0 (2022-10-30)

    This release contains a security fix for CVE-2022-39348. This is a low-severity security bug.

    Twisted 22.10.0rc1 release candidate was released on 2022-10-26 and there are no changes between the release candidate and the final release.

    Features

    • The systemd: endpoint parser now supports "named" file descriptors. This is a more reliable mechanism for choosing among several inherited descriptors. (#8147)

    Improved Documentation

    • The systemd endpoint parser's index parameter is now documented as leading to non-deterministic results in which descriptor is selected. The new name parameter is now documented as preferred. (#8146)
    • The implementers of Zope interfaces are once more displayed in the documentations. (#11690)

    Deprecations and Removals

    • twisted.protocols.dict, which was deprecated in 17.9, has been removed. (#11725)

    Misc

    Conch

    Bugfixes

    
    - twisted.conch.manhole.ManholeInterpreter now captures tracebacks even if sys.excepthook has been modified. ([#11638](https://github.com/twisted/twisted/issues/11638))
    

    Web

    Features

    ... (truncated)

    Changelog

    Sourced from twisted's changelog.

    Twisted 22.10.0 (2022-10-30)

    This release contains a security fix for CVE-2022-39348. This is a low-severity security bug.

    Twisted 22.10.0rc1 release candidate was released on 2022-10-26 and there are no changes between the release candidate and the final release.

    Features

    • The systemd: endpoint parser now supports "named" file descriptors. This is a more reliable mechanism for choosing among several inherited descriptors. (#8147)

    Improved Documentation

    • The systemd endpoint parser's index parameter is now documented as leading to non-deterministic results in which descriptor is selected. The new name parameter is now documented as preferred. (#8146)
    • The implementers of Zope interfaces are once more displayed in the documentations. (#11690)

    Deprecations and Removals

    • twisted.protocols.dict, which was deprecated in 17.9, has been removed. (#11725)

    Misc

    Conch

    Bugfixes

    
    - twisted.conch.manhole.ManholeInterpreter now captures tracebacks even if sys.excepthook has been modified. ([#11638](https://github.com/twisted/twisted/issues/11638))
    

    Web

    Features

    ... (truncated)

    Commits
    • 39ee213 Update news for final version.
    • 7e76513 python -m incremental.update Twisted --newversion 22.10.0
    • 3f1f502 Apply suggestions from twm.
    • 3185b01 Add info about CVE at the start of the release notes.
    • 15aa477 tox -e towncrier
    • 0a29d34 python -m incremental.update Twisted --rc
    • f2f5e81 Merge pull request from GHSA-vg46-2rrj-3647
    • b0545bc Merge branch 'trunk' into advisory-fix-1
    • 50761f4 #11715: Use NEXT in deprecation examples (#11720)
    • 927a5dc Add newsfragment
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
Owner
Eventify
Event driven service design
Eventify
An open source framework that provides a simple, universal API for building distributed applications. Ray is packaged with RLlib, a scalable reinforcement learning library, and Tune, a scalable hyperparameter tuning library.

Ray provides a simple, universal API for building distributed applications. Ray is packaged with the following libraries for accelerating machine lear

null 23.2k Dec 30, 2022
Ray provides a simple, universal API for building distributed applications.

An open source framework that provides a simple, universal API for building distributed applications. Ray is packaged with RLlib, a scalable reinforcement learning library, and Tune, a scalable hyperparameter tuning library.

null 23.5k Jan 5, 2023
Distributed Synchronization for Python

Distributed Synchronization for Python Tutti is a nearly drop-in replacement for python's built-in synchronization primitives that lets you fearlessly

Hamilton Kibbe 4 Jul 7, 2022
Distributed training framework for TensorFlow, Keras, PyTorch, and Apache MXNet.

Horovod Horovod is a distributed deep learning training framework for TensorFlow, Keras, PyTorch, and Apache MXNet. The goal of Horovod is to make dis

Horovod 12.9k Dec 29, 2022
Distributed machine learning platform

Veles Distributed platform for rapid Deep learning application development Consists of: Platform - https://github.com/Samsung/veles Znicz Plugin - Neu

Samsung 897 Dec 5, 2022
Framework and Library for Distributed Online Machine Learning

Jubatus The Jubatus library is an online machine learning framework which runs in distributed environment. See http://jubat.us/ for details. Quick Sta

Jubatus 701 Nov 29, 2022
Microsoft Distributed Machine Learning Toolkit

DMTK Distributed Machine Learning Toolkit https://www.dmtk.io Please open issues in the project below. For any technical support email to dmtk@microso

Microsoft 2.8k Nov 19, 2022
PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)

English | 简体中文 Welcome to the PaddlePaddle GitHub. PaddlePaddle, as the only independent R&D deep learning platform in China, has been officially open

null 19.4k Dec 30, 2022
PowerGym is a Gym-like environment for Volt-Var control in power distribution systems.

Overview PowerGym is a Gym-like environment for Volt-Var control in power distribution systems. The Volt-Var control targets minimizing voltage violat

Siemens 44 Jan 1, 2023
Luigi is a Python module that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow management, visualization etc. It also comes with Hadoop support built in.

Luigi is a Python (3.6, 3.7 tested) package that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow managemen

Spotify 16.2k Jan 1, 2023
Python Stream Processing

Python Stream Processing Version: 1.10.4 Web: http://faust.readthedocs.io/ Download: http://pypi.org/project/faust Source: http://github.com/robinhood

Robinhood 6.4k Jan 7, 2023
Run Python in Apache Storm topologies. Pythonic API, CLI tooling, and a topology DSL.

Streamparse lets you run Python code against real-time streams of data via Apache Storm. With streamparse you can create Storm bolts and spouts in Pyt

Parsely, Inc. 1.5k Dec 22, 2022
Distributed-systems-algos - Distributed Systems Algorithms For Python

Distributed Systems Algorithms ISIS algorithm In an asynchronous system that kee

Tony Joo 2 Nov 30, 2022
A "gym" style toolkit for building lightweight Neural Architecture Search systems

A "gym" style toolkit for building lightweight Neural Architecture Search systems

Jack Turner 12 Nov 5, 2022
rosny is a lightweight library for building concurrent systems.

rosny is a lightweight library for building concurrent systems. Installation Tested on: Linux Python >= 3.6 From pip: pip install rosny From source: p

Ruslan Baikulov 6 Oct 5, 2021
Event-forecasting - Event Forecasting Algorithms With Python

event-forecasting Event Forecasting Algorithms Theory Correlating events in comp

Intellia ICT 4 Feb 15, 2022
Event sourced bank - A wide-and-shallow example using the Python event sourcing library

Event Sourced Bank A "wide but shallow" example of using the Python event sourci

null 3 Mar 9, 2022
Zappa makes it super easy to build and deploy server-less, event-driven Python applications on AWS Lambda + API Gateway.

Zappa makes it super easy to build and deploy server-less, event-driven Python applications (including, but not limited to, WSGI web apps) on AWS Lambda + API Gateway. Think of it as "serverless" web hosting for your Python apps. That means infinite scaling, zero downtime, zero maintenance - and at a fraction of the cost of your current deployments!

Zappa 2.2k Jan 9, 2023
Generic Event Boundary Detection: A Benchmark for Event Segmentation

Generic Event Boundary Detection: A Benchmark for Event Segmentation We release our data annotation & baseline codes for detecting generic event bound

null 47 Nov 22, 2022
42-event-notifier - 42 Event notifier using 42API and Github Actions

42 Event Notifier 42서울 Agenda에 새로운 이벤트가 등록되면 알려드립니다! 현재는 Github Issue로 등록되므로 상단

null 6 May 16, 2022