Advanced Usage#

Warning

This page is a work in progress!

Note

For when you want to fine tune the process or edit the core installer. It is recommended that you read this after the Quickstart and understand what Ballad does.

Ballad runs on a core class called ballad.core.Ballad. Let’s go over a sample program that you might use.

from ballad import Ballad

ballad = Ballad()

There are a few things that we can do from here:

  • Change the environment from development to production

  • Get the data of the lockfile

  • Get the identifier of a specific item in the lockfile

  def __init__(self):
    """Initializes object. No arguments necessary."""
    self.lockfile_name = "poetry.lock"
    self.install_quiet_flag = "-q"
    self.environment = "development"