SQLAlchemy-MutableSoup defines a mutable BeautifulSoup SQLAlchemy database type.
Installation
$ pip install sqlalchemy-mutablesoup
Quickstart
from sqlalchemy_mutablesoup import MutableSoupType
from sqlalchemy import Column, Integer, create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
# standard session creation
engine = create_engine('sqlite:///:memory:')
session_factory = sessionmaker(bind=engine)
Session = scoped_session(session_factory)
session = Session()
Base = declarative_base()
# define and instantiate a model with a MutableSoupType column.
class Model(Base):
__tablename__ = 'model'
id = Column(Integer, primary_key=True)
soup = Column(MutableSoupType)
Base.metadata.create_all(engine)
model = Model()
session.add(model)
You can now treat model.soup as a bs4.BeautifulSoup object.
Citation
@software{bowen2020sqlalchemy-mutablesoup,
author = {Dillon Bowen},
title = {SQLAlchemy-MutableSoup},
url = {https://dsbowen.github.io/sqlalchemy-mutablesoup/},
date = {2020-06-04},
}
License
Users must cite this package in any publications which use it.
It is licensed with the MIT License.
Metadata
Release files for sqlalchemy-mutablesoup 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sqlalchemy-mutablesoup-0.0.9.tar.gz | 3.9 kB | Without provenance | Details for sqlalchemy-mutablesoup-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sqlalchemy_mutablesoup-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for sqlalchemy_mutablesoup-0.0.9-py3-none-any.whl |
Total release size: 9.2 kB
Release files / sqlalchemy-mutablesoup-0.0.9.tar.gz
| Download URL | sqlalchemy-mutablesoup-0.0.9.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17053e51dcc03df2911a4d2b41b137375d8714f21cf302b316eb1cddd5bb37f1
|
|
BLAKE2b-256 checksum How to use checksums |
0f2ff07d3c354efa4130c2ae3c0cdbefa9ecf7bb8f5f5cdf166ea8901f4c6c8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8
|
Release files / sqlalchemy_mutablesoup-0.0.9-py3-none-any.whl
| Download URL | sqlalchemy_mutablesoup-0.0.9-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3c37b08ad2dcd915eeefa970fa83ca58417a471a55dbb1f54c6e4c1cd595cd0
|
|
BLAKE2b-256 checksum How to use checksums |
2e4941b932caf8f34ff7280874ec9687e3cb339c1a33bf741ed4541909a9741c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8
|
Security for sqlalchemy-mutablesoup 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.