Skip to main content

Build ctypes interfaces for shared libraries with type hinting

Project description

release lic ci coverage

Work in progress. Stay tuned.


Build ctypes interfaces for shared libraries with type hinting

Requires Python 3.6+

  • Less boilerplate;
  • Logical structuring;
  • Useful helpers.
from ctyped.toolbox import Library

# Define library.
lib = Library('')

# Type less with function names prefixes.
with lib.scope(prefix='mylib_'):

    # Describe function available in the library.
    def some_func(title: str, year: int) -> str:

# Bind ctype types to functions available in the library.

# Call function from the library.
result_string = some_func('Hello!', 2019)

Read the documentation for more information.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ctyped, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size ctyped-0.3.0-py2.py3-none-any.whl (16.2 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size ctyped-0.3.0.tar.gz (20.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page