s3ssion
v1.0.2
About
Session helps creating login sessions.
Installation
## run
$ pip install s3ssion
Usage
initialization
>>> from s3ssion import s3ssion
>>> sess = s3ssion('password')
for help with session class initialization
>>> from s3ssion import s3ssion
>>> help(s3ssion)
class functions
>>> from s3ssion import s3ssion
# _login()_ function
>>> help(s3ssion._login_)
Help on function _login_ in module src.s3ssion:
_login_(self, username: str, password: str)
login user
Args:
username (str): username to login
password (str): password for username
Returns:
error (str | None): returns error text, if all good then error=None
# _register_() function
>>> help(s3ssion._register_)
Help on function _register_ in module src.s3ssion:
_register_(self, **kwargs)
register function.
ARGS:
NOTE: whatever field you entered during the class initialization, add them. default -> ['name', 'username', 'password'].
Returns:
error (str | None): returns error text if any, else None
# _logout_() function
>>> help(s3ssion._logout_)
Help on function _logout_ in module src.s3ssion:
_logout_(self)
logout currently logged in user
Returns:
error (str | None): returns error text or None
# _change_password_() function
>>> help(s3ssion._change_password_)
Help on function _change_password_ in module src.s3ssion:
_change_password_(self, username: str, old_password: str, new_password: str)
change user password.
Args:
username (str): username of the user
old_password (str): old password
new_password (str): new password
Returns:
error (str | None): returns error text or None
# _login_who_() function
>>> help(s3ssion._login_who_)
Help on function _login_who_ in module src.s3ssion:
_login_who_(self)
returns currently logged in user
Returns:
username (str): currently logged in user.
# _login_status_() function
>>> help(s3ssion._login_function_)
Help on function _login_status_ in module src.s3ssion:
_login_status_(self)
get login status
Returns:
status (bool): returns if anyone is currently logged in.
# _user_count_() function
>>> help(s3ssion._user_count_)
Help on function _user_count_ in module src.s3ssion:
_user_count_(self)
get registered user count
Returns:
usercount (int): Number of users currently registered.
# _force_login_() function
>>> help(s3ssion._force_login_)
Help on function _force_login_ in module src.s3ssion:
_force_login_(self, username: str)
forcefully login an user.
Args:
username (str): username to forcefully login.
Metadata
Release files for s3ssion 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| s3ssion-1.0.2.tar.gz | 4.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| s3ssion-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / s3ssion-1.0.2.tar.gz
| Download URL | s3ssion-1.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf256c79cd8ef48778ff503891cf43e877a66395df37fffa43d82a3e8fa79b92
|
|
BLAKE2b-256 checksum How to use checksums |
358e0fb2dc3168b395f79ee52266951ac8971c4c4cf9350b69fb8c1501403696
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|
Release files / s3ssion-1.0.2-py3-none-any.whl
| Download URL | s3ssion-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
056ed024d43f1f6d37c6a458e9fdb946ba151df39e51beeb0e3cb7f0152a71fe
|
|
BLAKE2b-256 checksum How to use checksums |
e56a926ef07513153b9132f3938cc0d9813f3041f6082bbeba636c20437a590c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|
Security for s3ssion 1.0.2
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.