New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

concur

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concur

Concur UI Framework for Python

  • 0.11.0
  • PyPI
  • Socket score

Maintainers
1

Python Concur

Build Status PyPI version Python version

Concur is a Python GUI framework based on synchronous generators.

It is a port of Concur for Purescript, implemented on top of the Dear ImGui C++ UI library.

For introduction to core concepts, see the documentation. A more comprehensive introduction can be found in the Documentation for the Haskell/Purescript versions. This obviously uses Haskell/Purescript syntax and semantics, but many of the concepts will apply to the Python version.

Being an abstraction over ImGui, Concur is best used for debugging, prototyping and data analysis, rather than user-facing applications. ImGui functions can be used directly for any functionality that is not wrapped by Concur. See the PyImGui docs for additional widgets, or ImGui itself if you need to poke really deep.

Installation

The only dependencies are a C++ compiler, GLFW and Python >= 3.6. GLFW is included in major Linux distros, and there are pre-compiled binaries for Windows and OS X.

sudo apt install libglfw3-dev # Ubuntu
sudo pacman -S glfw           # Arch

Concur can be installed using pip:

pip install concur

This command should produce a very simple GUI app:

python -c 'import concur as c; c.main(c.button("Close"))'

See the introductory tutorial to get started, or use any of the examples as a starting point for your app.

Development

For Concur development, clone the repo and install it using pip:

git clone https://github.com/potocpav/python-concur.git
cd python-concur
pip install -e.

examples/all.py # Run the examples to verify installation

To run the tests, you need PyTest and PyTest-benchmark:

pip install pytest pytest-benchmark

pytest # Run the tests

# Alternatively, run the tests slowly
SLOW_TEST=1 pytest

To build documentation, install pdoc3 (pip install pdoc3), clone the submodules (git submodule update --init), and run the script ./mkdocs.sh.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc