Skip to main content

Mutable BeautifulSoup database type

Project description

SQLAlchemy-MutableSoup

SQLAlchemy-MutableSoup defines a mutable BeautifulSoup SQLAlchemy database type.

Example

After setup, we can manipulate a MutableSoupType database column as if it were a BeautifulSoup object.

model.soup = '<p>Hello World.</p>'
print(model.soup)
print(
    '`soup` is a BeautifulSoup object?', 
    isinstance(model.soup, BeautifulSoup)
)

Output:

<p>Hello World.</p>
`soup` is a BeautifulSoup object? True

Documentation

You can find the latest documentation at https://dsbowen.github.io/sqlalchemy-mutablesoup.

License

Publications which use this software should include the following citation:

Bowen, D.S. (2020). SQLAlchemy-MutableSoup [Computer software]. https://dsbowen.github.io/sqlalchemy-mutablesoup.

This project is licensed under the MIT License LICENSE.

Project details


Download files

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

Source Distribution

sqlalchemy-mutablesoup-0.0.4.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

sqlalchemy_mutablesoup-0.0.4-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page