Skip to main content

POP

Pop is used to express the Plugin Oriented Programming Paradigm. The Plugin Oriented Programming Paradigm has been designed to make pluggable software easy to write and easy to extend.

Plugin Oriented Programming presents a new way to scale development teams and deliver complex software. This is done by making the applications entirely out of plugins, and also making the applications themselves natively pluggable with each other.

Using Plugin Oriented Programming it then becomes easy to have the best of both worlds, software can be built in small pieces, making development easier to maintain. The small pieces can then be merged and deployed in a single binary, making code deployment easy as well.

All this using Python, one of the world’s most popular and powerful programming languages.

Getting Started

A more complete Getting Started Guide is available inside of the documentation for pop. The best place to start is in the doc’s Getting Started Guide found here:

https://pop.readthedocs.io

First off, install pop from pypi:

pip3 install pop

Now all it takes to create a pluggable application is a few lines of code. This is the root of every pop project. We create a hub, we add dynamic subsystems, and then we call them through the hub’s namespace.

import pop.hub

hub = pop.hub.Hub()
# Dynamic subsystems can now be added to the hub
hub.pop.sub.add(dyne_name="my_dynamic_sub")
# This hub now exists on the namespace and mirrors the file tree of that sub
# the sub "my_dynamic_sub" had a plugin called "init" with a function called "cli" we could do this:
hub.my_dynamic_sub.init.cli()

Writing your first pop application can be very simple, there is a tool called pop-create that automates much of the groundwork needed to get started with an advanced application.

pip3 install pop-create

Now that you have pop-create, use the tool to bootstrap your project! This will make your Python project boiler plate for you!

mkdir poppy
cd poppy
pop-create seed -n poppy

Now you have a setup.py that file will detect changes to you project and “Just Work”. Feel free to open it up and fill in some of the blank places, like author name, description, etc. The pop-create program also made your first directories, your run.py startup script, everything you need to install your project and the pop conf.py file used to load in configuration. Running pop-create also made a few other files, but nothing to worry about now. Look at pop-create’s documentation for more details of what it can do.

Congratulations! You have a pop project! Now you can run the project:

python3 run.py

With a project up and running you can now add more plugins, more code and more plugin subsystems!

What Happened?

Take a look at the poppy/poppy/init.py file, your little run.py script created the hub, loaded your first plugin subsystem, poppy and called the run function therein. This is the starting point for your app.

Next dive into the pop documentation, we will take you through how to think in Plugin Oriented Programming, helping you see a new way to write code that is more flexible and dynamic than anything you have seen before!

Single Binary

In the first few sentences of this document I promised you a single binary! This is easy to do! Just pip install tiamat:

pip3 install tiamat
tiamat --log-level=debug build -n poppy -r requirements/base.txt

This built a single binary of your program! Now you can run it.

./dist/poppy

Documentation

Check out the docs for more information:

https://pop.readthedocs.io

There is a much more in depth tutorial here, followed by documents on how to think in Plugin Oriented Programming. Take your time to read it, it is not long and can change how you look at writing software!

Metadata

Release files for pop 27.1.0

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

Source distribution (sdist)

Source distribution for pop 27.1.0
File Size Uploaded
pop-27.1.0.tar.gz 40.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pop 27.1.0
File Interpreter ABI Platform
pop-27.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 84.0 kB

Release files / pop-27.1.0.tar.gz

Download URL pop-27.1.0.tar.gz
Size 40.3 kB
Tags Source
SHA-256 checksum
How to use checksums
da6ab2f5af91f3ea88c090b80f6e3b1def6af4044c0b02f6b1b2adc785aab130
BLAKE2b-256 checksum
How to use checksums
609b7b5de10ae4d37683e4c975f70ec63ed7ed8d4fe7e3bf03a185ea6f976b27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.5 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18

Release files / pop-27.1.0-py3-none-any.whl

Download URL pop-27.1.0-py3-none-any.whl
Size 43.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ea71286823115ee7407803721d7a1cd07d11773ce99fa2c8d895f04c39fd311
BLAKE2b-256 checksum
How to use checksums
530bffef39da7ed7744d8db471f942e3979e8b86dd4ee9167a7b4ca6e9b368bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.5 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.9.18

Release history Release notifications | RSS feed

This release

27.1.0 This release

2 release files

27.0.2

2 release files

27.0.1

2 release files

27.0.0

2 release files

26.0.4

2 release files

26.0.3

2 release files

26.0.2

2 release files

26.0.1

2 release files

26.0.0

2 release files

25.0.0

2 release files

24.0.1

2 release files

24.0.0

2 release files

23.1.0

2 release files

21.0.2

2 release files

21.0.1

2 release files

20.1.1

2 release files

20.1.0

2 release files

20.0.0

2 release files

19.0.1

2 release files

19.0.0

2 release files

17.1

2 release files

17.0

2 release files

16.4

2 release files

16.3

2 release files

16.2

2 release files

16.1

2 release files

16

2 release files

15

2 release files

14.1

2 release files

14

2 release files

13.2

2 release files

13.1

2 release files

13

2 release files

12

2 release files

11

2 release files

10.1

2 release files

10

2 release files

9

2 release files

8.2

2 release files

8.1

2 release files

8

2 release files

7.6

2 release files

7.5

2 release files

7.4

2 release files

7.3.0

2 release files

7.2.0

2 release files

7.1.0

2 release files

7.0.0

2 release files

6.1.0

2 release files

6.0.0

2 release files

5.2.0

2 release files

5.0.0

1 release file

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