Skip to main content

Public APIs for the core asyncdef components.

This package contains the public interface definitions for the core asyncdef components. This package leverages iface for the definitions. Items in this package are intended to be used with isinstance and issubclass for interface comparisons.

from asyncdef.interfaces.engine import iengine

assert isinstance(some_implementation, iengine.IEngine)
assert iface.isinstance(some_implementation, iengine.IEngine)

Interface definitions are placed here to prevent the need for importing the actual implementation code in order to check the interface.

License

Copyright 2016 Kevin Conway

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributing

Firstly, if you’re putting in a patch then thank you! Here are some tips for getting your patch merged:

Style

As long as the code passes the PEP8 and PyFlakes gates then the style is acceptable.

Docs

The PEP257 gate will check that all public methods have docstrings. If you’re adding something new, like a helper function, try out the napoleon style of docstrings.

Release files for asyncdef.interfaces 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asyncdef.interfaces 0.2.1
File Size Uploaded
asyncdef.interfaces-0.2.1.tar.gz 9.6 kB Details

Release files / asyncdef.interfaces-0.2.1.tar.gz

Download URL asyncdef.interfaces-0.2.1.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
350452dcc7f1e35b57a4c323d35b810bae19705042857ebe06c4e8e9d7ac0c8e
BLAKE2b-256 checksum
How to use checksums
3255843f6fd188d619a7a7d4e97810fb43b3d9d96673a957c1363e4306879e9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page