Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
s3ssion
v1.0.2
Session helps creating login sessions.
## run
$ pip install s3ssion
>>> from s3ssion import s3ssion
>>> sess = s3ssion('password')
for help with session class initialization
>>> from s3ssion import s3ssion
>>> help(s3ssion)
>>> 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.
FAQs
Login Session Manager
We found that s3ssion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.