jaraco / jaraco/keyring

atomic get_or_create

Open
#456 3 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Python
Stars
1.5k
Forks
196
PR merge metrics
No merged PRs in 30d

Description

I'd like to be able to do something like:

```python
# mysite/settings.py
SECRET_KEY = keyring.get_or_create_password(__package__, "secret_key")
```

and have it work in a variety of adverse scenarios - eg gunicorn threaded, multiprocessing workers. (although in this situation I currently set an environment variable)

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file or test is named. Start by tracing the requested get_or_create_password API from the Python example, then examine how it should behave with gunicorn threaded and multiprocessing workers. Done means the operation is atomic across those adverse scenarios, with tests covering the stated cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.