Skip to main content

Python client for Hypernova,

Project description

# hypernova-python [![Build Status](](

> A Python client for the Hypernova service

## Getting Started

Install the python client from pypi

pip install hypernova-python

Once you have the client installed and an instance of the Hypernova service running, you can making requests is easy.

### Example

import hypernova

renderer = hypernova.Renderer('http://localhost')
html = renderer.render({'MyComponent.js': {'name': 'Foo'}})

## Configuration
You can pass configuration options to `Renderer` at initialization.

* `url`: The address of the Hypernova service is listening, including port if necessary
* `plugins`: A list of plugins to use
* `timeout`: Number of seconds to wait for a response from the Hypernova service
* `headers`: Dictionary of HTTP headers to override the default. You will want to include `'Content-Type': 'application/json'`

## Plugins
You can implement custom events and alter requests through the [Plugin Lifecycle]( All lifecycle methods are optional.

### Example

import hypernova
import random

class MyPlugin(object):
def prepare_request(self, current_jobs, original_jobs):
job = current_jobs.get('MyComponent.js')
job.update({'random_int_for_reasons': random.randint(0, 100))
return current_jobs

renderer = hypernova.Renderer('http://localhost', [MyPlugin()])

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hypernova, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size hypernova-0.0.3-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hypernova-0.0.3.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page