{"id":21068776,"url":"https://github.com/dev-cafe/context-api-example","last_synced_at":"2025-05-16T03:33:34.399Z","repository":{"id":72326973,"uuid":"58081603","full_name":"dev-cafe/context-api-example","owner":"dev-cafe","description":"Shows how to implement context-aware APIs in different languages.","archived":false,"fork":false,"pushed_at":"2020-01-11T13:43:47.000Z","size":54,"stargazers_count":4,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-01-29T08:49:52.356Z","etag":null,"topics":["api","c","cffi","cmake","context","cpp","fortran"],"latest_commit_sha":null,"homepage":null,"language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-cafe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-04T20:22:18.000Z","updated_at":"2020-11-16T08:58:15.000Z","dependencies_parsed_at":"2023-03-23T11:18:56.385Z","dependency_job_id":null,"html_url":"https://github.com/dev-cafe/context-api-example","commit_stats":{"total_commits":93,"total_committers":1,"mean_commits":93.0,"dds":0.0,"last_synced_commit":"c1aea3cdad270b4ecaede5539927779ef7c34082"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cafe%2Fcontext-api-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cafe%2Fcontext-api-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cafe%2Fcontext-api-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-cafe%2Fcontext-api-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-cafe","download_url":"https://codeload.github.com/dev-cafe/context-api-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225404418,"owners_count":17469140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","c","cffi","cmake","context","cpp","fortran"],"created_at":"2024-11-19T18:25:21.862Z","updated_at":"2024-11-19T18:25:22.490Z","avatar_url":"https://github.com/dev-cafe.png","language":"Fortran","readme":"[![Build Status](https://travis-ci.org/bast/context-api-example.svg?branch=master)](https://travis-ci.org/bast/context-api-example/builds)\n[![License](https://img.shields.io/badge/license-%20MPL--v2.0-blue.svg)](../master/LICENSE)\n\n\n# context-api-example\n\nShows how to implement and use context-aware APIs in C++, Fortran, and Python.\nInspired by Armin Ronacher's\n[\"Beautiful Native Libraries\"](http://lucumr.pocoo.org/2013/8/18/beautiful-native-libraries/).\n\nComments, contributions, and improvements are most welcome!\n\n\n## How to build and run this demo\n\n### Install Python dependencies\n\n```shell\n$ virtualenv venv\n$ source venv/bin/activate\n$ pip install -r requirements.txt\n```\n\n### Configure and build the compiled code\n\n```shell\n$ mkdir build\n$ cd build\n$ cmake ..\n$ make\n```\n\n### Test the C++/Fortran interfaces\n\n```shell\n$ make test\n```\n\n### Test the Python interface\n\n```shell\n$ ACCOUNT_LIBRARY_DIR=$PWD/build/lib ACCOUNT_INCLUDE_DIR=$PWD/account PYTHONPATH=$PWD pytest -vv test/test.py\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-cafe%2Fcontext-api-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-cafe%2Fcontext-api-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-cafe%2Fcontext-api-example/lists"}