# Combined plugins & plugin list

**URL:** <https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225>\
**Category:** Development\
**Created:** [November 11, 2025, 3:33pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225 "2025-11-11T15:33:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 11, 2025, 3:33pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/1 "2025-11-11T15:33:28Z")

</div>

For a bit @matterhorn103 has been outlining some ideas for “combined” plugins. For example, maybe you want the `xtb` plugin to provide:

- commands (e.g., generate some orbitals for me)
- energy scripts (e.g., add GFN-FF and GFN2 to the AutoOptimize tool)
- charge scripts (e.g., calculate GFN2 charges)
- etc.

At the same time, the “plugin infrastructure” is a text file in a GitHub repo, manual review and some scripts to help cache the details (vs. checking secure hashes like `git`)

So I’m opening up this thread for him to outline some of his plugin manifesto, but also to discuss ways to improve plugins as we move towards 2.0. (I’m intending on writing about a dozen different plugins, and I’m kinda hoping many more will show up.)

For example, at some point, the download plugin table needs some searching / filtering and auto-update features.

Thoughts?

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [November 12, 2025, 2:24am UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/2 "2025-11-12T02:24:34Z")

</div>

Ok, as requested, my vision is outlined in detail below. Feedback, questions, criticism all welcome.

## Key goals

1. Plugins in binary form should be enabled as well as ones written in Python
2. Plugins should be able to offer multiple functionalities of mixed types
3. Plugins written in Python should be able to use a more conventional package structure compatible with the broader Python ecosystem
4. Plugins should be able to expect to be run via a single entry point, allowing them more flexibility in how they handle requests
5. Metadata and information needed by Avogadro for population of the UI should be parsed statically from files rather than obtained dynamically by running Python at launch
6. Relatedly, launch times should be improved by doing the minimum amount of work necessary to load plugins
7. Plugins should be able to have Avogadro store user configuration options for them, and also receive the user’s entire Avo config on request

## Proposed plugin infrastructure and API

### Plugin directory structure

- Plugins stored in subfolders under `OpenChemistry/Avogadro/plugins/`:
  - `plugins/python` for plugins written in Python (though they may have non-Python dependencies)
  - `plugins/bin` for plugins in compiled binary form

- All plugins for _distribution_ (and therefore downloadable via Avogadro’s plugin manager) must be plugin _packages_
  - A _package_ means that the plugin is distributed and stored as a folder with the exact same name as the plugin e.g. `my-plugin`, and that the folder contains not only code but also a metadata file (see below)
  - This applies to both binary and Python plugins (or any other languages that might be supported in future)
  - Python scripts are still supported but intended just for convenient personal local use – they will not be distributed going forwards

### Plugin types

- Binary plugins are _always_ plugin _packages_. They are stored under `plugins/bin` The plugin folder contains, at minimum:
  - A binary with the exact same name as the plugin e.g. `plugins/bin/my-plugin/my-plugin`
  - An `avogadro.toml` file (other name suggestions accepted, `avoplugin.toml` was another idea) containing the plugin’s metadata
    - This file is necessary for Avogadro to know how to run the plugin, so standalone binaries that are not in the package format are not allowed

- Plugins written in Python and stored in `plugins/python` may be:
  - _packages_
    - Stored in subfolders e.g. `plugins/python/my-py-plugin`. The plugin folder contains, at minimum:
      - A `pyproject.toml` containing the plugin’s metadata as well as the usual Python info about the plugin’s dependencies
        - The plugin metadata is in exactly the same format as in `avogadro.toml`, but under a `[tool.avogadro]` table

      - Some Python source code, stored in any structure suitable for a Python package

  - standalone _scripts_
    - All kept together in `plugins/python/scripts`
    - For a script, the metadata is recorded at the top of the Python file itself, using the in-line metadata standard brought in by [PEP 723](https://peps.python.org/pep-0723/)

### Metadata and configuration

- Metadata that Avogadro needs to know in order to properly run a plugin is no longer obtained dynamically by running the plugin but instead by static analysis of TOML files
  - `plugin.json` is deprecated
  - Requires adding a TOML parsing library

- The static metadata for a plugin contains the following information:
  - The subcommands provided by the plugin, what “types” of plugin process they correspond to (`charges`, `energy` etc.), and what the display names and menu paths for each of those items should be
  - Info that was previously in `plugin.json` e.g. author, version number
    - Items that have an equivalent in the `[project]` table of a `pyproject.toml` file are specified there for a Python plugin

  - Options regarding configuration for the plugin:
    - Whether or not the plugin wants a configuration to be recorded for it in the main Avogadro configuration file, and if so, what entries the config should have for the plugin
    - Whether the plugin wants to be passed the main Avogadro configuration options in their entirety as well (for example, so that the xtb plugin can use the same energy units as Avogadro). This will enable a future settings menu in the main interface to also show options for the plugins

### Python plugins

- Python plugin packages should be proper Python packages that can be installed; this means they follow Python packaging conventions, and even allows them to be published to `PyPI` or `conda-forge` so that they can also be used as libraries in a non-Avogadro context, if desired
- Python packages define a single entry point that Avogadro will use
  - This allows a plugin to do various things; for example, it allows the code to be organized however best suits the plugin, and it allows the plugin to run any common logic more easily

- A general, default Pixi environment for running most Python plugins is recorded in a manifest at `plugins/python/pyproject.toml`
  - For now, the environment has no dependencies by default, but in future there may be a minimal set of common packages specified e.g. `numpy`

- Python plugin packages are then installed to the Pixi environment so that their dependencies can be resolved and added to the environment
- Python plugin _scripts_ may _not_ have dependencies
  - If dependencies are necessary, just make it into a minimal package
  - In future, could think about having some dependencies in the common default environment as a common base, which scripts could be allowed to use

### Running plugins

- Scripts are run using `pixi run python path/to/<script>.py [OPTIONS]`
- Binary packages are run using `path/to/<plugin> [OPTIONS]`
- Python packages are run using `pixi run <plugin> <subcommand> [OPTIONS]`
  - This means plugins need to define an entry point in their `pyproject.toml` so that they can be run using a command rather than as a Python file (fairly trivial)

- Rethink current option flags
  - Get rid of `--run-command` and similar – plugins define subcommands
  - Deprecate `--display-name` and `--menu-path`, put that information in the static metadata
  - `--print-options` should be split up – anything that’s always the same should go into the static metadata, while anything that might be dynamic should still be obtained by running a subcommand with an option
  - Add a `--config` option, which is used by Avogadro to pass configuration information (see above)

### The online plugin repository/index

- The `Avogadro/plugins` GitHub repo switches to using a `repositories.toml` file, with each plugin having its own table within it
  - Each plugin has to specify (at minimum, suggestions welcome):
    - The git repository
    - The specific commit
    - Possibly a SHA256 hash that Avogadro can use to check the plugin files after download
    - Whether it is a `bin` plugin or a `python` plugin (or any other options that may come later)

  - Requiring the specific commit massively improves security, as it means that updates for plugins have to be approved by submitting a PR to `Avogadro/plugins`, and the code for the plugin can’t just be changed and delivered to all plugin users
  - Switching to a new file means we can keep the old one for a little while if we like, to avoid breaking plugins for older versions just yet

### Runtime plugin loading

- The process of loading, running, and installing plugins in Avogadro is streamlined significantly:
  - At launch:
    - No plugin is run
    - No Python interpreter is used
    - The plugin directories are scanned for plugins, and each TOML file found is parsed appropriately to get the metadata of each
      - Much faster than spinning up several Python processes for each plugin in turn just to request information like the display name

  - When a plugin needs to be run (because it’s the selected force field, or because its menu option was selected), Avogadro just runs it according to the provided metadata
  - When downloading a plugin, Avogadro knows from the central index on [https://avogadro.cc](https://avogadro.cc) whether the plugin is a binary or Python plugin, puts it in the appropriate location, then installs it if it’s a Python one

- The metadata should probably be cached in an index
  - That way, the scanning step is skipped altogether
  - It’s impossible to have a situation where a Python plugin is present but not installed
  - To cache the metadata:
    - A plugin index in the form of a `plugins.toml` file would be maintained in the `plugins/` folder i.e. at `OpenChemistry/Avogadro/plugins/plugins.toml`
    - The index would collate all the metadata from all the installed plugins
    - Note this requires a TOML writing library! Could also just store as JSON, but seems a bit silly not to keep it consistent with the plugin metadata format

  - At launch, Avogadro just reads in the index and does no scanning of the directory tree – the index has everything Avogadro needs to know
  - Plugin discovery/index generation/Python package installation is then only carried out at launch if there is no index found
  - Downloading a plugin using the built-in downloader causes the plugin to be installed (if it’s a Python plugin) as well as appending the metadata to the index
  - Plugin discovery/index regeneration/reinstallation of all Python plugin packages can be manually triggered via a menu option in the Avogadro interface

### Miscellaneous

- Plugins may only have `A-Z, a-z, 0-9, -` (i.e. ASCII letters, numbers, and the hyphen-minus) in their names (no Unicode, no underscores, no other punctuation or whitespace)
- Communication over the Avogadro-plugin interface should be exclusively in UTF-8

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 12, 2025, 4:30pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/3 "2025-11-12T16:30:55Z")

</div>

Let me start with a bit of history. One thing that came up repeatedly with Avogadro 1.0 / 1.2 was that people might want to contribute changes, but programming in C++ was an obstacle. Also, it would be nice to update things like the input generators without waiting for a full release of Avogadro. (For example if there’s a Gaussian 25 release or someone like @brockdyer03 contributes an `xsf` file reader.)

At the same time, there’s a _huge_ increase in Python use in science research more broadly and chemistry in particular. (It’s also way easier to write parsers in Python than in C++, e.g. `cclib`). There’s now a broad ecosystem of Python packages and codes on `conda-forge`.

Marcus and Allison Vacanti wrote the input generator scripts with the idea of “supply some JSON for the form” and IMHO it works really well. It’s easy to point people at the `avogenerators` repository, and even if you don’t understand Python, they’re pretty easy to modify. Want to add a basis set or solvent? It’s just a text file with a list.

So two big goals:

- lower the barrier to contributors / changes
- make it easier to send a script to someone (i.e., Python scripts run pretty much anywhere)

They also added support for Python scripts to read file formats, although it doesn’t (yet) have wide use.

When I was working with some folks to expand to command scripts, those were key motivations too. Make it easy for someone to add a “generate nanotube” or “use `pymatgen` to create a slab” scripts.

I still want to keep those core goals.

I don’t have time at the moment to go through everything, but I welcome the discussion.

1. I’m somewhat reluctant to enable binary plugins because we’d need to download platform-specific code, but maybe? It also makes it much harder to audit / inspect. Certainly it would help for some tasks. I think the broader aspect should be that we want to enable “not just Python” for plugins.
2. I think I’d say **some** plugins should be able to offer multiple functionalities. With respect to lowering the bar to contribute, it’s pretty easy right now to write quick scripts for commands, charges, etc. So I’d like to keep those low-barrier tasks even if we make it better for more sophisticated plugins like `xtb`.
3. As long as we agree that it’s not _required_ to have a package structure, I’m good. I still want people to be able to write quick one-off scripts that use RDKit to select SMARTS patterns or change 10% of the lead atoms to gold.
4. 🤷‍♂️
5. I’d say the catch is with translation / localization. I’d really like scripts to have the potential for localization.
6. Of course that’s always a good goal.
7. I’m not sure about the “entire config” part. Happy to have them store and retrieve settings, which seems useful.

So my suggestion would be that we keep the current subfolders for particular plugins, but add a new one for `combined` or something like that.

> [@matterhorn103](#):
>
> Python scripts are still supported but intended just for convenient personal local use – they will not be distributed going forwards

No, sorry. I strongly disagree with this because it creates a barrier for contributors. What’s wrong with someone writing a useful script (e.g., parsing a particular file format) and wanting to distribute it?

I’ll respond to a few other things later, but I think you’re under-estimating the perceived barrier to “creating a minimal package.” If anything we want to make it easy for people to contribute little useful things – which may still require dependencies – while still making it possible to have more sophisticated plugins as well.

Anything that makes it easier / faster seems like a good idea.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [November 12, 2025, 6:13pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/4 "2025-11-12T18:13:11Z")

</div>

> [@ghutchis](#):
>
> What’s wrong with someone writing a useful script (e.g., parsing a particular file format) and wanting to distribute it?

Well the issue is that then you don’t have any metadata.

I mean, it’s already not possible to submit just a script by itself for distribution – we require the git repo to have a `plugin.json` file in it. So we are already requiring a distribution container, I’m just proposing to use a more standard format that allows us to use `pixi install`.

> [@ghutchis](#):
>
> make it easier to send a script to someone (i.e., Python scripts run pretty much anywhere)

To clarify, when I say “distribution” I’m talking about distribution by Avogadro’s own infrastructure. I’m not looking to discourage people just sharing quick scripts by email or on this forum – that kind of distribution I’m all for!

To be fair, my reasoning for not distributing scripts was to make things a lot simpler. Distributing scripts means having to account for more possibilities at different points. For example, the plugin manager has to know how to deal with scripts.

But my original idea didn’t have that restriction. The easy way around it is just to require scripts to put the necessary metadata in-line if they want us to host them. I’m happy to do that.

> [@ghutchis](#):
>
> - lower the barrier to contributors / changes
> 
> …
> 
> I’ll respond to a few other things later, but I think you’re under-estimating the perceived barrier to “creating a minimal package.” If anything we want to make it easy for people to contribute little useful things – which may still require dependencies – while still making it possible to have more sophisticated plugins as well.

Don’t worry, our aims are aligned. The thing is, I think requiring an Avogadro-specific plugin structure actually _raises_ the barrier, because there’s a lot of help and documentation for the standard way of doing things (and an LLM can easily help out), and not a lot for our way.

A minimal package structure is just a matter of `uv init` or similar with many other tools. Crucially though, I would propose that `Avogadro/plugins` includes an example minimal plugin layout that people can use as a template.

To your specific other comments:

1. Yeah, that’s fair, I was thinking binaries compiled from open-source code though. But as a first step we could just add the API, so that people can at least use binary plugins locally, even if we don’t initially host them.
2. I don’t see a need to distinguish. Each plugin already has to tell Avogadro what it does, and it would going forward too. Why rely on the directory tree structure?
3. Well, I feel it has distinct advantages to require it if it’s going to be hosted by us and dealt with via the package manager, because things become so, so much easier.
4. I suggest it because having each script in a plugin be independent and run separately makes things challenging once you need common functionality.
5. Localization can easily be done within static metadata, not an issue. 🙂 If we like, we can still pass the `--lang` option to plugins so that they can adapt their output dynamically, if that’s desirable.
6. 🙂
7. Sure, I was just going for the simplest approach!

I appreciate your thoughts, and hope you get a chance to look in more detail at the rest some time. Hopefully others might chime in too.

I think your impression is that I want to make things more complicated when actually I want the opposite, to simplify things and _reduce_ friction when writing a plugin! I’m happy to find ways to simplify my proposal, but I’m convinced that aiming for a flexible, universal, and standards-based API is a better strategy (especially long-term) for achieving simplicity than implementing complicated custom solutions.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 13, 2025, 11:10pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/5 "2025-11-13T23:10:49Z")

</div>

> [@matterhorn103](#):
>
> Well the issue is that then you don’t have any metadata.

But you’re proposing that metadata can be included in the script file, right?

> [@matterhorn103](#):
>
> I mean, it’s already not possible to submit just a script by itself for distribution – we require the git repo to have a `plugin.json` file in it. So we are already requiring a distribution container

The main point of this was to make it pretty easy to have a folder that’s a set of scripts. Put them in a repo and add a fairly simple JSON with the metadata.

I’ve spent a good amount of time looking at research code - from my own group and from other groups.

While I think it’s important to promote good coding practices, I’d like to create a useful “contribution ladder” from [“I made a script to generate XRD patterns”](https://discuss.avogadro.cc/t/genxrnpattern-binary-location-installation/7219/8) to much more sophisticated plugins like `xtb`. For example PyMol has a [huge range](https://pymolwiki.org/index.php/Category:Plugins) of plugins from simple scripts to use of PyQt interfaces.

So if there’s a good way to include the metadata in a simple script, I’d be in favor of allowing a GitHub / GitLab / whatever repo with just a script or three and a README.

Now part of your proposal centers around more sophisticated packages, and suggesting some structure for those is a good idea. That’s also part of the need to create more examples so people can adapt them.

> [@matterhorn103](#):
>
> I’m just proposing to use a more standard format that allows us to use `pixi install`.

We can use `pixi install` on anything that has a `pyproject.toml`. Certainly I’d suggest plugins start using that, and I’m willing to use that as a metadata mechanism instead of the JSON file.

> [@matterhorn103](#):
>
> Why rely on the directory tree structure?

In many cases, it’s faster because the code doesn’t need to load them. 99% of the time, I don’t need to load charge plugins. Probably 50% of the time I don’t need to load energy plugins.

Also, given the list of things I need to write up, there will probably be 20-30 plugins. Having some directory structure for people makes it a bit easier IMHO.

> [@matterhorn103](#):
>
> I suggest it because having each script in a plugin be independent and run separately makes things challenging once you need common functionality.

Sure. But again, I think there’s a continuum of things from “I just want to run this one thing with pymatgen” to something like `xtb` which uses a bunch of common functionality. That’s why I think you’re describing a new category.

I don’t think it’s crucial to separate though. `pixi` allows tasks, which could be separate scripts or one entry point: [Tasks - Pixi by prefix.dev](https://pixi.sh/dev/workspace/advanced_tasks/#depends-on)

I agree that we’re on the same page as far as reducing friction. I think I’m coming from the pragmatic “I’d love people to start with a template but think that will be a mental barrier for many.”

Moreover, I think having slightly different plugin types makes it a bit easier on the C++ side. Let’s say that I want to add `--batch-energy` and `--batch-optimize` methods to the energy plugins. Right now, I can do that pretty easily. Those plugins are supposed to supply some metadata to `Avogadro` about their capabilities. I’m less clear on how that works in your universal proposal.

Part of the current complexity is that most useful plugins want some dependencies. That’s why `pixi` is great because it can `pixi install` an environment for `pytorch` for ML plugins or whatever else is needed.

Plugins need to be called at launch right now to make sure they can actually function in the current Python environment. For example if you don’t have `pymatgen` then don’t show those commands.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 13, 2025, 11:16pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/6 "2025-11-13T23:16:46Z")

</div>

> [@matterhorn103](#):
>
> The online plugin repository/index

We could still make it fairly easy to supply a repository or otherwise automate the generation of the TOML or JSON.

GitHub actions could grab the repository, check the SHA256 (or other hash) etc. as part of a pull request. It’s also possible to provide some sort of automated “create a pull request when a plugin changes” but still require a human to check things over and approve the update or new entry.

(I’ve been looking into some AI-driven code review tools. GitHub copilot provides that for example.)

This discussion also reminds me about this old issue: [Download plugins should use `git` if available in the path · Issue #341 · OpenChemistry/avogadrolibs · GitHub](https://github.com/OpenChemistry/avogadrolibs/issues/341) (i.e., if `git` is available, use that to download or update plugins)

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [November 14, 2025, 2:22pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/7 "2025-11-14T14:22:29Z")

</div>

> [@ghutchis](#):
>
> But you’re proposing that metadata can be included in the script file, right?

Yes, but I was proposing that a script needn’t include metadata that is only necessary if it’s being distributed via the plugin manager, to keep it simpler for people writing one-off scripts. But sure, we could have script plugins include the same metadata as package plugins, that’s not an issue.

That would open the door to have local scripts also be manageable using the plugin manager in future (i.e. add script plugins in the GUI via a file dialog, and see or remove currently installed ones). That would be quite nice, I think.

> [@ghutchis](#):
>
> The main point of this was to make it pretty easy to have a folder that’s a set of scripts. Put them in a repo and add a fairly simple JSON with the metadata.

> [@ghutchis](#):
>
> So if there’s a good way to include the metadata in a simple script, I’d be in favor of allowing a GitHub / GitLab / whatever repo with just a script or three and a README.

I wonder whether maybe you have the wrong idea as to what a Python distribution package actually is/looks like? Because this is the thing, at the point where you have what you’re describing, the step to an actual proper Python package is really extremely small.

> [@ghutchis](#):
>
> We can use `pixi install` on anything that has a `pyproject.toml`. Certainly I’d suggest plugins start using that, and I’m willing to use that as a metadata mechanism instead of the JSON file.

I have realised that `pixi install` is not, as I thought, something that installs a package to an environment, but instead a command that creates a local environment from a manifest.

I’ve also realised that a pixi/conda project is not a package itself and cannot be added to another project’s environment as a dependency/package in the same way that is possible with normal Python packages.

This means that various aspects of my proposal as envisaged would not be possible, in particular the way I was suggesting that plugins are run. I’ll have to think about things a bit more.

> [@ghutchis](#):
>
> In many cases, it’s faster because the code doesn’t need to load them. 99% of the time, I don’t need to load charge plugins. Probably 50% of the time I don’t need to load energy plugins.

The whole point of having the metadata available statically, and possibly cached, is that they don’t need to be run at all until they actually need to produce a result. Reading the metadata in order to populate the various options in the GUI is trivially fast, so there’s no need to avoid loading subsets of the plugins, because they’re not really loaded any more.

> [@ghutchis](#):
>
> But again, I think there’s a continuum of things from “I just want to run this one thing with pymatgen” to something like `xtb` which uses a bunch of common functionality. That’s why I think you’re describing a new category.

I just think it actually makes it more, not less complicated, to write a script when you special case stuff and pigeon-hole them by functionality. And I’m not suggesting to get rid of the categories of functionality, just suggesting that a plugin should be a plugin should be a plugin, and the plugin communicates to Avogadro what it can do, rather than what kind of plugin it is.

> [@ghutchis](#):
>
> Moreover, I think having slightly different plugin types makes it a bit easier on the C++ side. Let’s say that I want to add `--batch-energy` and `--batch-optimize` methods to the energy plugins. Right now, I can do that pretty easily.

That would still be very much possible, because again, Avogadro already knows which plugins offer energy calculations, so it can just choose to run those. All that changes is that we no longer say “this plugin does x so it’s an x plugin, this plugin does y so it’s a y plugin”, we say “this plugin offers A, and A does x, while this plugin offers B to do x and C to do y”.

> [@ghutchis](#):
>
> Plugins need to be called at launch right now to make sure they can actually function in the current Python environment. For example if you don’t have `pymatgen` then don’t show those commands.

I don’t think that makes sense, in exactly the same way as it doesn’t make sense for Avogadro to run its test suite at launch to check that everything functions. It means that if something is broken with a plugin or the Python setup that it affects the whole application e.g. by extending the launch time.

As to the example, that’s the wrong way of handling it. It shouldn’t be possible to install a plugin that relies on `pymatgen` if it’s not present, or the installation manager should make sure it becomes present.

> [@ghutchis](#):
>
> This discussion also reminds me about this old issue: [Download plugins should use `git` if available in the path · Issue #341 · OpenChemistry/avogadrolibs · GitHub](https://github.com/OpenChemistry/avogadrolibs/issues/341) (i.e., if `git` is available, use that to download or update plugins)

It would be nice to do this if we used e.g. [Pixi’s ability to add dependencies to an environment from git](https://pixi.sh/latest/reference/pixi_manifest/#pypi-dependencies), but that requires them to be standard Python packages. I don’t think we should introduce yet another functionality that relies on something that may or may not be available (almost no Windows and macOS users will have git installed), as it just leads to fragility. It means another code path to maintain.

Anyway, as I said, I need to reappraise my proposal now that I’ve realised that it has impossible aspects. Likely I’ll then put a file in a GitHub repo so that we can have a living document that can be collaborated on, changes reviewed etc.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 14, 2025, 4:45pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/8 "2025-11-14T16:45:21Z")

</div>

> [@matterhorn103](#):
>
> As to the example, that’s the wrong way of handling it. It shouldn’t be possible to install a plugin that relies on `pymatgen` if it’s not present, or the installation manager should make sure it becomes present.

Right. The problem is that before adopting `pixi` it has absolutely been possible to install a plugin and not have it work in the current environment because there was a global environment. You can absolutely install a plugin, switch environments and .. no `pymatgen`

I agree that it would be great to have a static map or caching, but that hasn’t really been possible until now.

If you can put up an example at some point, that might be easier to iterate / refine.

It’s probably also useful to discuss packages that should be in the default environment (e.g., `numpy` .. maybe `avogadro` itself?)

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [December 2, 2025, 7:54pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/9 "2025-12-02T19:54:25Z")

</div>

I’m going to come back for this. If we’re using `pixi install` to make sure the plugins have a correct environment, then yes we don’t need to worry about `pymatgen` or other dependencies. (We’ll need to get people to use `pixi` but I think that’s doable.)

Won’t `pixi` tasks basically do what you want? Users can then either organize nicely into a “package” or also a loose collection of scripts in a GitHub repository. The task list will be in `pyproject.toml` and tasks can take arguments as needed.

I think we require the tasks be organized into “features” (or have a separate TOML category for this).

- charges / electrostatics
- energy
- commands
- input\_generators

So a simple plugin has a simple `pyproject.toml` that might look like this:

```toml
name = "turtlemol"
requires-python = ">= 3.11"
version = "0.5.0"
 dependencies = [
    'numpy',
    'pandas',
    'trimesh',
    'rtree',
    'scipy',
]

[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]

[tool.pixi.tasks]
fillBox = "python ./TurtleMol/avogadroPlugin/fillBox.py",
fillSphere = "python ./TurtleMol/avogadroPlugin/fillSphere.py"
fillMesh = "python ./TurtleMol/avogadroPlugin/fillMesh.py"

[tool.avogadro.tasks]
commands = ["fillBox", "fillSphere", "fillMesh"]

```

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [December 3, 2025, 8:58pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/10 "2025-12-03T20:58:28Z")

</div>

BTW, while we can do something like this in `pyproject.toml` I didn’t get much traction from the `pixi` developers about having avogadro sections in `pixi.toml`

Edit: got a better response from `pixi` developers:

> you can add a tool section in your pixi.toml!  
> e.g [tool.avogadro] should work

So I think we’re in business. We can require categories for the tasks, e.g.

```toml
[tool.avogadro.tasks]
commands = ["fillBox", "fillSphere", "fillMesh"]
energy = ["runXTB"]

```

Then Avogadro should get the metadata from `pyproject.toml` or `pixi.toml`.

I’ll see if I can work out a proposal for a few things?

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 4, 2025, 2:20am UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/11 "2025-12-04T02:20:35Z")

</div>

I can reply in a bit more detail tomorrow, but I don’t think it’s a great idea to use pixi tasks for this, as it’s entirely tool-specific. By using the standardised entry points specification, the subcommands (or tasks if you’d like to call them that) can be run in any virtual environment where a Python package is installed.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 4, 2025, 2:24am UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/12 "2025-12-04T02:24:36Z")

</div>

I did a bit on it a few weeks ago when we were discussion before, and in this repo [GitHub - matterhorn103/avo-plugin-demo: A simple Python plugin for Avogadro 2 to demonstrate the revamped plugin API](https://github.com/matterhorn103/avo-plugin-demo) you can find how I was envisioning the `pyproject.toml` to look. I was liberal with comments to hopefully make things self-explanatory.

I need to make changes to the actual Python files so please ignore them for now.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [December 4, 2025, 5:31pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/13 "2025-12-04T17:31:45Z")

</div>

> [@matterhorn103](#):
>
> you can find how I was envisioning the `pyproject.toml` to look

I think we’re more or less in agreement with that part:

```auto
[[tool.avogadro.charges]]
subcommand = "get-charges"
method-name = "Löwdiken analysis"

[[tool.avogadro.commands]]
subcommand = "transmute"
path.menu = "Build" # The menu within which the command's menu entry should appear
path.entry = { label = "Transmute into gold", priority = 300 } # The text for the command's menu entry and its position within "Build"

```

My concern is that `pyproject.toml` only makes sense for Python projects. What if someone wants something in .. I dunno, Perl or Julia or JavaScript? But certainly we can use the same TOML in another file for other languages.

I’d probably pick some other word than `subcommand` and give an example like `label.de` for translations. But those are minor issues.

I think the central debate is that you’re advocating for a more structured style - only one entry point:

```auto
[project.scripts]
avogadro-plugin-demo = "plugin_demo:main"

```

Maybe I’m mis-understanding, but I don’t see anything wrong with the current input generators - a bunch of separate scripts in a folder. Structured style is good and we can push people towards that, but I don’t see why it needs to be **required**.

So what’s the benefit of requiring specific structure (i.e., an “installed” Python package) over “organize your plugin scripts and directory however you want - we suggest this template”? I’m asking in part because it seems like the recommended organization of Python packages changes every year or so.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 5, 2025, 5:22pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/14 "2025-12-05T17:22:02Z")

</div>

> [@ghutchis](#):
>
> What if someone wants something in .. I dunno, Perl or Julia or JavaScript?

Sure, but since we don’t currently have a mechanism to run those scripts anyway, that’s a problem to be solved later I’d say.

However, because I’m keen to support binary extensions (at some point, if not necessarily yet) I do agree it makes sense to enable the use of a TOML file that isn’t Python-specific. I’d suggest `avogadro.toml`, and I’d suggest its content should be identical to the `[[tool.avogadro]]` table. We’d also need to require whatever extra information that would otherwise be in the `[project]` table. For example:

```toml
# These fields are required:
name = "plugin-demo" # Must match the binary name
version = "0.1.0"
description = "A simple Python plugin for Avogadro 2 to demonstrate the revamped plugin API in v2.0 onwards"
# These fields are optional:
readme = "README.md"

[[charges]]
subcommand = "get-charges"
method-name = "Löwdiken analysis"

[[commands]]
subcommand = "transmute"
path.menu = "Build" # The menu within which the command's menu entry should appear
path.entry = { label = "Transmute into gold", priority = 300 } # The text for the command's menu entry and its position within "Build"

```

In any case there’s probably a few fields we want to have authors specify that I haven’t included, at least for those that are submitted to the central repository - I’m mainly thinking author and license information.

> [@ghutchis](#):
>
> I’d probably pick some other word than `subcommand`

That’s fine – any alternative suggestions?

> [@ghutchis](#):
>
> give an example like `label.de` for translations

Good idea. Bad idea to use dots in keys though. And if the tag is part of a key then Avogadro has to do string processing on all the keys to work out what locales are available, right? So I’d suggest having a table for each locale under its tag, and then just mirror the same structure to keep it as conceptually simple as possible:

```toml
[[tool.avogadro.commands]]
subcommand = "movey"
path.menu = "Extensions"
path.submenu = { menu = "Demo", priority = 500 }
path.entry = { label = "Move Y", priority = 210 }

# Presumably menu isn't required, presumably Avogadro matches it on the default rather than localized version?
de.path.submenu = { menu = "Demo", priority = 500 }
de.path.entry = { label = "Y-Bewegung", priority = 210 }

```

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 5, 2025, 6:12pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/15 "2025-12-05T18:12:44Z")

</div>

> [@ghutchis](#):
>
> Maybe I’m mis-understanding, but I don’t see anything wrong with the current input generators - a bunch of separate scripts in a folder. Structured style is good and we can push people towards that, but I don’t see why it needs to be **required**.

Sorry, I thought I was clear that I’m more than happy to keep support for individual scripts?

If you’re asking “what’s wrong with a plugin that’s just a GitHub repo with a few scripts”, well, it makes things a lot easier at many points if the plugin as a whole has a single metadata file rather than each script having its own, and once you’ve got a `pyproject.toml` it’s pretty trivial to stick all the `.py` files in a subfolder.

Some point this weekend, I’ll demonstrate with the generators repo 🙂

> [@ghutchis](#):
>
> So what’s the benefit of requiring specific structure (i.e., an “installed” Python package) over “organize your plugin scripts and directory however you want - we suggest this template”? I’m asking in part because it seems like the recommended organization of Python packages changes every year or so.

It’s funny you put it like this, because it’s exactly the opposite way round…

Because we’re not using a package at the moment, a plugin author has very little freedom in the organization and structure – it has to be exactly how Avogadro expects. And as soon as a plugin wants to use an `import` statement, the whole thing becomes very fragile, and would either be unreliable or the plugin has to manipulate `PYTHONPATH`, which is rarely a good idea.

On the other hand, if plugins are normal Python packages, it’s the contrary: we’re not requiring any specific structure, because Avogadro no longer has to be concerned with the internal structure. All Avogadro needs to know is that the plugin is self-contained in a folder, that folder can be installed to an environment, and that that folder has a TOML file at the top level that gives it the information it needs to use the plugin.

The proposition becomes a much simpler one: “Structure your plugin however you want, put files where you want, do imports however you want, share logic however you want, just make sure that pip/hatch/uv/pixi/any installer can install it and it responds appropriately when run”, and anything that works generally will work for Avogadro too.

As to other benefits, there are many, but primarily it means that it plays nicely with other normal Python tooling. For example, IDEs can do there normal analysis more easily, and it becomes much easier to write tests for something like `pytest`.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 6, 2025, 4:17pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/16 "2025-12-06T16:17:40Z")

</div>

As promised, I’ve refactored the `avogenerators` plugin to demonstrate. You can see it in my fork here:

> **[GitHub - matterhorn103/avogenerators at plugin-api-2.0](https://github.com/matterhorn103/avogenerators/tree/plugin-api-2.0)**
>
> plugin-api-2.0

Because of the way the scripts are written, it didn’t require any actual changes to the individual scripts at all. I would want to clean them up further (by removing the `if __name__ == " __main__":` blocks from each script, for example) but this serves to demonstrate that it doesn’t require complex code or an extensive rewrite.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [December 6, 2025, 8:32pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/17 "2025-12-06T20:32:53Z")

</div>

> [@matterhorn103](#):
>
> rather than each script having its own, and once you’ve got a `pyproject.toml` it’s pretty trivial to stick all the `.py` files in a subfolder.

I don’t think you quite got my point. I get what you’re saying - that for some plugins like `avo_xtb` it’s much easier if it’s structured like a plugin with the `.py` files in a subfolder.

I’m thinking of a “skill ladder” for those willing to share scripts:

- one simple script (e.g., [import XSF files](https://discuss.avogadro.cc/t/add-support-for-xsf-charge-density-files/7173) or [generating an x-ray diffraction pattern with pymatgen](https://discuss.avogadro.cc/t/genxrnpattern-binary-location-installation/7219/8)) - with some level of metadata embedded
- a few scripts in a folder potentially with dependencies (e.g., `pymatgen` or `rdkit`) .. most of the current plugins fall into this category
- more complex script packages like `avo_xtb` or `qupkake` or `TurtleMol`

You say "it’s pretty trivial to stick all the `.py` files in a subfolder. I understand it’s a benefit for more complex script packages. But what’s _wrong_ with "hey, a few scripts and a `pyproject.toml` in a folder?

> [@matterhorn103](#):
>
> All Avogadro needs to know is that the plugin is self-contained in a folder, that folder can be installed to an environment, and that that folder has a TOML file at the top level that gives it the information it needs to use the plugin.

But why is the `installed to an environment` **required**? Seems like it’s possible to make it optional, in which case the existing bits are mostly compatible.

I understand where making a full Python package make it easier for some things. But if someone wants to share one or four scripts in a GitHub repo, they have to put together a subdirectory, create an ` __init.py__ ` etc. No, that’s not a huge barrier, but my point is that it doesn’t need to be a barrier at all if “installed to an environment” is optional.

> Structure your plugin however you want, put files where you want, do imports however you want, share logic however you want, just make sure ~~that pip/hatch/uv/pixi/any installer can install it~~ _it and any dependencies are installed if needed_ and commands respond appropriately when run

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 7, 2025, 11:25am UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/18 "2025-12-07T11:25:04Z")

</div>

> [@ghutchis](#):
>
> I don’t think you quite got my point. I get what you’re saying - that for some plugins like `avo_xtb` it’s much easier if it’s structured like a plugin with the `.py` files in a subfolder.
> 
> I’m thinking of a “skill ladder” for those willing to share scripts:

> [@ghutchis](#):
>
> But why is the `installed to an environment` **required**? Seems like it’s possible to make it optional, in which case the existing bits are mostly compatible.

I do get your point, I just think that your middle rung is unnecessary and counterproductive. If it’s optional then we then end up with four or five different flavours of Python plugin that Avogadro has to support, which means writing and maintaining multiple pathways at several stages:

- collating the metadata for the repo
- displaying the plugins in the plugin downloader
- downloading the plugins
- installing them
- running them

To my mind that’s just unnecessary complexity that will only make it harder to provide a robust solution.

Also, I think you perhaps underestimate how confusing the _current_ API is to write for. Having several options will only make it harder for authors to understand how to write a plugin, not easier.

Given the volume of support requests that already relate to the plugin infrastructure, I don’t see making it more complex as a good idea. So actually I would favour just keeping the status quo over adding an _alternative_ API.

> [@ghutchis](#):
>
> in which case the existing bits are mostly compatible.

I just don’t see retaining compatibility as a big concern, since we’re not yet at 2.0, the number of plugins is low, and it’d be relatively quick for me to manually adapt the existing plugins. I see 2.0 as a bit of a last chance to try and get a good API in place, because changing it later would be a harder prospect.

> [@ghutchis](#):
>
> Structure your plugin however you want, put files where you want, do imports however you want, share logic however you want, just make sure ~~that pip/hatch/uv/pixi/any installer can install it~~ _it and any dependencies are installed if needed_ and commands respond appropriately when run

To me it seems like a bad idea to implement a solution that relies entirely on the continued existence of Pixi. Especially since you’re not making Pixi a hard dependency of Avogadro and various platforms will not have it available (all the versions of Avogadro from the repos of Linux distros, for example). That’s why I am strongly advocating for two things:

1. Plugins written in Python that don’t need conda dependencies should only specify dependencies in a way that is tool-agnostic, not Pixi-specific
2. Plugins should as far as possible be normal Python packages

The latter is because other tools can’t necessarily create a virtual environment from a `pyproject.toml`. Pip is the primary example here, they don’t plan to add that ability. But what pip _can_ do is install a standard package (that possesses a `pyproject.toml`) in a virtual environment. Installation of a plugin as a Python package via the standardized mechanisms is surely the most reliable and most future-proof way to make sure the dependencies are resolved and installed. It means Avogadro doesn’t have to process the dependency list at all, it just has to pass the plugin as a whole to whatever tool is doing the installing.

> [@ghutchis](#):
>
> I’m asking in part because it seems like the recommended organization of Python packages changes every year or so.

I also don’t really understand this. Which changes are you referring to?

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 7, 2025, 11:50am UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/19 "2025-12-07T11:50:27Z")

</div>

It’s perhaps worth noting that it is actually already currently possible to write a plugin that is structured as a Python package – my xtb plugin achieves this by specifying the script paths in `plugin.json` as the paths to the files within the code-containing subdirectory, for example. But because the plugin isn’t actually consumed by Avogadro as a package, I can’t make use of ` __init__.py` for any common logic.

The way Avogadro handles this can also lead to some weird behaviour. Take DHRUVJ2003’s peptide generation plugin [GitHub - DHRUVJ2003/Peptide\_generation\_script: pyPept: a python library to generate atomistic 2D and 3D representations of peptides](https://github.com/DHRUVJ2003/Peptide_generation_script) for example. The contents of `requirements.txt` is what Avogadro installs, right? But if, after installing those dependencies to a virtual environment, you try to run `python3 DHRUVJ2003-Peptide_generation_script-2792a63/peptide_generation.py` then you get an error as follows:

```auto
Traceback (most recent call last):
  File "/home/matt/python/DHRUVJ2003-Peptide_generation_script-2792a63/peptide_generation.py", line 11, in <module>
    from pyPept.sequence import Sequence
  File "/home/matt/python/DHRUVJ2003-Peptide_generation_script-2792a63/pyPept/sequence.py", line 27, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

```

This is because `peptide_generation.py` imports `pyPept` as an _import package_ ([distinct from a distribution package](https://packaging.python.org/en/latest/discussions/distribution-package-vs-import-package/)) from its own directory. Python can find `pyPept` fine, but `pyPept` relies on being installed i.e. as a distribution package, which is why it is distributed with a `setup.py` file, which presumably ensures the package resources are dealt with appropriately when installed. When `pyPept` hasn’t been installed, `peptide_generation.py` (i.e. the plugin script itself) can’t import it and it errors as shown. Equally, you can’t install the plugin by running `pip install` on the directory, as this runs `setup.py`, which then errors because `rdkit` hasn’t been installed.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [December 7, 2025, 1:25pm UTC](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225/20 "2025-12-07T13:25:16Z")

</div>

I’ve had a look at the code, specifically at `avogadrolibs/avogadro/qtplugins/plugindownloader/downloaderwidget.cpp`. It seems that the plugin downloader tries to install with pixi or conda if available, and if not, falls back to pip, using it as follows:

```cpp
// Install dependencies using pip
void DownloaderWidget::installWithPip(const QString& requirementFile)
{
  if (requirementFile.isEmpty() ||
      requirementFile.contains("environment.yml")) {
    return; // nothing to do, please migrate to pyproject.toml
  }

  m_progressDialog = new QProgressDialog(
    tr("Installing dependencies with %1…", "argument is program name")
      .arg("pip"),
    tr("Cancel"), 0, 0, this);
  m_progressDialog->setWindowModality(Qt::WindowModal);

  connect(m_progressDialog, SIGNAL(canceled()), this,
          SLOT(cancelInstallation()));

  QSettings settings;
  QString pythonPath =
    settings.value("interpreters/python", "python").toString();

  QStringList arguments;
  arguments << "-m"
            << "pip"
            << "install"
            << ".";

  m_installerProcess = new QProcess(this);
  m_installerProcess->setWorkingDirectory(m_filePath);

  connect(m_installerProcess, SIGNAL(finished(int, QProcess::ExitStatus)), this,
          SLOT(installationFinished()));

  m_progressDialog->show();
  m_installerProcess->start(pythonPath, arguments);
}

```

`pip install` installs the package found at the provided path into the current (virtual) environment. So actually, the way things are set up at the moment, **Avogadro is already installing plugins as packages!** It’s just not _using_ them as packages.

This also means that plugins that have only a `requirements.txt` file must be broken at the moment, as `requirements.txt` is not relevant for package installation – dependencies are specified for packages either in the old `setup.py` format or in the modern `pyproject.toml` format. To install dependencies from a `requirements.txt` with pip you have to use `pip install -r <requirements file>`.

[Next page](https://discuss.avogadro.cc/t/combined-plugins-plugin-list/7225.md?page=2)
