Skip to main content

ssh-pymongo

Just for convenience. Note: uri parameter is assumed as local, after ssh.

pip install ssh-pymongo

Example 1

from ssh_pymongo import MongoSession

session = MongoSession('db.example.com')

db = session.connection['db-name']

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 ssh-pymongo 1.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 ssh-pymongo 1.0.4
File Size Uploaded Provenance Actions
ssh-pymongo-1.0.4.tar.gz 2.2 kB Without provenance Details for ssh-pymongo-1.0.4.tar.gz

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

Download URL ssh-pymongo-1.0.4.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ce6186fd012972e57cd9f10895d7aa6d4427c7fd7d452cb9a89814d6e38a0168
BLAKE2b-256 checksum
How to use checksums
a0f14a93705b21fa53e1fc41ab54c9325b1c6044de411d54e0f022f5c79158ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for ssh-pymongo 1.0.4

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