Skip to main content

ssh-pymongo

ssh-pymongo

PyPI Latest Release PyPI Build PyPI - Downloads) PyPI - Python Version)

Python utilities to simplify connection with MongoDB through SSH tunnel. Note: uri parameter is assumed as local, after ssh.

Where to get it

The source code is currently hosted on GitHub at: https://github.com/pualien/pymongo-ssh

Binary installers for the latest released version are available at the Python package index

pip install pymongo-ssh

Example 1

from pymongo_ssh import MongoSession

session = MongoSession('db.example.com')
db = session.connection['db-name']
session.stop()
# session.start()

Example 2

session = MongoSession(
    host='db.example.com',
    uri='mongodb://user:password@127.0.0.1/?authSource=admin&authMechanism=SCRAM-SHA-256'
)
...
session.stop()

Example 3

session = MongoSession(
    host='db.example.com',
    user='myuser',
    password='mypassword',
)
...
session.stop()

Example 4

session = MongoSession(
    host='db.example.com',
    port='21',
    user='myuser',
    key='/home/myplace/.ssh/id_rsa2',
    to_port='37017',
    to_host='0.0.0.0'
)
...
session.stop()

Metadata

Release files for pymongo-ssh 0.0.5

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

Source distribution (sdist)

Source distribution for pymongo-ssh 0.0.5
File Size Uploaded Provenance Actions
pymongo-ssh-0.0.5.tar.gz 3.4 kB Without provenance Details for pymongo-ssh-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymongo-ssh 0.0.5
File Interpreter ABI Platform Actions
pymongo_ssh-0.0.5-py3-none-any.whl Python 3 none any Details for pymongo_ssh-0.0.5-py3-none-any.whl

Total release size: 7.2 kB

Release files / pymongo-ssh-0.0.5.tar.gz

Download URL pymongo-ssh-0.0.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0a0cccd6cefdcfb369674194c4a62bb991caba6e698f8320e78237e588ee3fa6
BLAKE2b-256 checksum
How to use checksums
51ae5c97c5b003f43b09866876c811feee35e662c4014a37ff17d28be89a2e84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

Release files / pymongo_ssh-0.0.5-py3-none-any.whl

Download URL pymongo_ssh-0.0.5-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6db8812f38196e3d1fdfd07f0630aab80d4cf34bb7cd03fb8506704211f3664
BLAKE2b-256 checksum
How to use checksums
36c1a76f57e5cfed4359b500a1d9217be555c900f6cfc76c91951c82e87f6bca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

Security for pymongo-ssh 0.0.5

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.

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