Development Status :: 2 - Pre-Alpha
Bibscrap is still in its pre-alpha development phase. This is the earliest stage of software development. The project is still establishing its requirementa, and it contains code that is not yet feature-complete. For more information about what this means for Bibscrap 0.1.0-alpha.5, please refer to Versions in the API documentation.
Bibscrap 0.1.0-alpha.5 API
Definitions
Throughout the Bibscrap 0.1.0-alpha.5 API documentation, capitalized key words are used to signify various requirements related to the API specification. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119. Other capitalized key words that appear in this documentation SHOULD be interpreted as defined below.
- INITIAL DEVELOPMENT
- INITIAL DEVELOPMENT VERSION
A Bibscrap version of the form
0.Y.Zor0.Y.Z-alpha.Nis an initial development version. An INITIAL DEVELOPMENT version SHOULD NOT be considered STABLE as it MAY change at any time.- PRE-RELEASE
- PRE-RELEASE VERSION
A Bibscrap version of the form
X.Y.Z-alpha.NwhereX >= 1is a pre-release version of its associated version,X.Y.Z, and MAY not satisfy the intended compatibility requirements described in the Public API of versionX.Y.Z. A PRE-RELEASE version SHOULD NOT be considered STABLE.- STABLE
- STABLE VERSION
A Bibscrap version of the form
X.Y.Zis a stable version that meets the intended compatibility requirements described in its Public API.
Versions
The Bibscrap team makes every effort to use Semantic Versioning 2.0.0. Given a Bibscrap version
number MAJOR.MINOR.PATCH[-alpha.PRE], its semantic components are MAJOR,
MINOR, PATCH, and PRE. We only bump (i.e., increment) the semantic
components of a Bibscrap version under specific scenarios, as described in the
table below.
Component |
Bump Scenario |
|---|---|
|
Incompatible Public API changes are introduced. |
|
New functionality is introduced in a backwards compatible manner. |
|
Backwards compatible bug fixes are introduced. |
|
Changes are introduced to a PRE-RELEASE. |
When -alpha.PRE is present in a Bibscrap version number, it denotes a
PRE-RELEASE. The Bibscrap team uses PRE-RELEASE versions to
make some API changes, feature additions, and bug fixes available ahead of their
associated STABLE or INITIAL DEVELOPMENT versions.
When MAJOR is zero in a Bibscrap version (e.g., 0.MINOR.PATCH[-alpha.PRE]),
that denotes an INITIAL DEVELOPMENT version, regardless of its MINOR,
PATCH, and PRE values.
Public API
Changes
Todo
After Bisbscrap 1.0.0 is released, all changes to the Public API will need to be be documented in order to comply with Semantic Versioning 2.0.0.
bibscrap
bibscrap - The top-level Bibscrap module.
New in version 1.0.0: Initial Public API release.
bibscrap.core
Defines the base APIs for Bibscrap, including its base models, collections, and events.
- class bibscrap.core.Bibscrap
TODO.
Internal API
bibscrap.cli
bibscrap.cli - Bibscrap command-line interface (CLI) module.
bibscrap.cli.app
Defines the API for Bibscrap’s command-line interface (CLI) application.
- class bibscrap.cli.app.Application
Bibscrap application class.
Construct a Bibscrap
Applicationobject.- Return type
None
- property command_loader: bibscrap.cli.commands.CommandLoader
Return the application’s command loader.
- register_builtin_command(command)
Register a builtin Bibscrap command.
- Parameters
command (str) – The builtin command to register.
- Return type
None
- register_command(command, command_class, module=None, package=None)
Register a command with the command loader.
- Parameters
command (str) – The command to register.
command_class (str) – The command’s
Commandclass name.module (Optional[str]) – The module containing the command’s
Commandclass. IfNone, then command_class must be a fully qualified name.package (Optional[str]) – Used to anchor the import when module is specified in relative terms.
- Return type
None
- unhide_completions_command()
Unhide the “completions” command provided by Cleo.
- Return type
None
bibscrap.cli.commands
bibscrap.cli.commands - builtin Bibscrap commands.
- class bibscrap.cli.commands.CommandLoader(factories={})
Bibscrap’s command loader using factories to instantiate commands lazily.
Construct a
CommandLoaderobject.- Parameters
factories (Dict[str, Callable]) – A mapping from command names to their callable factories.
- Return type
None
- register_factory(command_name, factory)
Register a callable factory for a Bibscrap command.
- resolve(command_class, module=None, package=None)
Resolve the class name, module, and package for a Bibscrap command.
If
moduleisNone, thencommand_classis assumed to be the fully-qualified name (FQN) of the command’s class.