Skip to main content

Objection.py

A modular library for creating objection.lol projects beyond what's possible manually.

Overview

The .objection format is good for distribution, but doesn't work as well for production or automation.

This library focuses on providing helpful IDE suggestions, simple readability, and a class-based structure making up every piece of an objection. This structure can then compile to objection.lol's complicated JSON format.

This way, complex objections with gameplay systems that use large amounts of repetitive actions become simple to generate.

scene = Scene()
scene.frames.append(Frame(
    char = FrameCharacter(
        character = preset.Characters.Defense.PhoenixWright,
        poseSubstr = 'Point',
        pairOffset = (-20, 0),
    ),
    pairChar = FrameCharacter(
        character = preset.Characters.Defense.MiaFey,
        poseSubstr = 'Point',
        pairOffset = (20, 0),
    ),
    fade = Fade(
        direction = FadeDirection.OUT,
        target = FadeTarget.BACKGROUND,
        duration = 1000,
        color = Color('#000'),
    ),
    text = f'{preset.Sound.Yell}Objection!',
))
scene.compile()

Installation

Installing objection.py with pip:

pip install objectionpy

Documentation

View the documentation page

TODO

  • Complete: galleryAssign option for custom characters
  • Complete: improve tests for scene features and for objection JSON loading

Release files for objectionpy 0.0.4

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

Source distribution (sdist)

Source distribution for objectionpy 0.0.4
File Size Uploaded
objectionpy-0.0.4.tar.gz 49.7 kB Details

Built distribution (wheel)

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

Total release size: 102.9 kB

Release files / objectionpy-0.0.4.tar.gz

Download URL objectionpy-0.0.4.tar.gz
Size 49.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6237ff5efd2357bb48fac296156a76a8c99b44c60770c182b4d5785ff42e7de9
BLAKE2b-256 checksum
How to use checksums
b7ab90d57a5bd6c9edce7c8449dd04257d173107c64116157f59115032625c86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release files / objectionpy-0.0.4-py3-none-any.whl

Download URL objectionpy-0.0.4-py3-none-any.whl
Size 53.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e602107d7add504797dd96841b21da4ae55e61553ed49a8c20c9d92d012e3ff6
BLAKE2b-256 checksum
How to use checksums
7a55a0e646e7f7db4a3933a00f79deb17b0bcf0347d580d6d351d0ec7f6f7ae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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