tarantool / tarantool/tarantool-python

Implement dsn support for connect() method

Open
#170 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Database API feature
Dominant language
Python
Stars
108
Forks
51
Avg merge
1d 8h
Merged PRs (30d)
1

Description

Pep 249 suggests a constructor method of Connection objects .connect()

It takes the following parameters as arguments:

Parameter Meaning
dsn Data source name as string
user User name as string (optional)
password Password as string (optional)
host Hostname (optional)
database Database name (optional)
kwargs It is not from the standard but we use it for the method signature scalability.

Implement dsn parser utility to pass the settings to the Connection init by only one line.

The pattern can be used ([[[username[:password]@]host:]port)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Connection object's connect() method and its initializer, then trace how connection parameters are currently passed. Define the DSN parser utility around the listed dsn, user, password, host, database, and kwargs inputs, and confirm that connect() passes the parsed settings to Connection initialization.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.