Skip to main content

A Python library for creating login systems

Project description

Janex Login System

Overview

This Janex: Login System library provides a simple framework for developers to create their own login systems in Python applications. It includes functionality for adding accounts, logging in, and basic error handling.

Installation

You can install the library using pip:

pip install JanexLogin

Usage

Import the LoginSession class from the library:

from JanexLogin import LoginSession

Initialize a LoginSession object with the path to the account JSON file:

login_session = LoginSession("accounts.json")

Use the add_account method to add a new account:

status_code = login_session.add_account("username", "email@example.com", "password123")

Possible status codes:

200: New account created successfully.
405: Username already exists.
410: Email already exists.

Use the login_account method to log in to an existing account:

status_code = login_session.login_account("email@example.com", "password123")
Possible status codes:
    205: Password is correct.
    415: Incorrect password.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on GitHub.

License

This library is licensed under the Lily License 4.0. See the LICENSE file for details.

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

JanexLogin-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file JanexLogin-0.0.2.tar.gz.

File metadata

  • Download URL: JanexLogin-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for JanexLogin-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e99aed24361b1de8f0fa63756d6628683a1184f848f3fd176ba9f45d25d7a1d9
MD5 cdbec9fa0f0ea58e6949ab10bf0e90de
BLAKE2b-256 17060201a7d6d3add02ebf2151fcd0c14600c90faec1a77bd33eeca15d06bbd7

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