Skip to main content

Super Duper Simple dotenv (.env) handler

Project description

Super Simple Environment

Release build

Super Duper Simple, Super Duper Easy dotenv (.env) package in Python.

Feature

  • Handle dotenv (.env)
  • Import, Load, and Use it now!

Installation

Requirements

  • Python 3.X

You can just install Environment package by using pip:

pip install ssenv

Usage

Import the package

First, you should import the package and create an instance of Environment class.

import ssenv

env = ssenv.Environment()

Load the dotenv

You can load the dotenv file by using load_dotenv() method. If you want to reload the dotenv file, you can just use load_dotenv() method again.

env.load_dotenv()

Use it!

You can use the dotenv file by using get() method. If you want to get the value of the dotenv, you can just use get() method with the key of the dotenv. If the dotenv file doesn't have the key, it will return None.

pwd = env.get('MY_PASSWORD')

If you don't like to use get() method, you can also use the dotenv file by using [] operator.

pwd = env['MY_PASSWORD']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ssenv-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ssenv-1.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file ssenv-1.0.0.tar.gz.

File metadata

  • Download URL: ssenv-1.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ssenv-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bf5e42db73b787bcf36350156ad83994d58cffcc522c5dd6f3dd548148704ff4
MD5 c27a5e93182772e63f45ce16267f7a47
BLAKE2b-256 30053427c00511793a21f48f7bb682cd201e166266b122050a4a5ca2c7fd2a74

See more details on using hashes here.

File details

Details for the file ssenv-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ssenv-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ssenv-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 203f4699b53cfa1279b636dbda0472c303f975f6188874c1874aa7f3be60420c
MD5 348adb918b23bc8059dce4537ffa54b0
BLAKE2b-256 fa433965f6f721d66eafe1a2bcc697975d847515a6979da8cf551bf03d664e93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page