added codebase, project rules and sec audit

This commit is contained in:
2026-11-08 19:03:59 -05:00
parent 4816038d49
commit bcd424f91a
1798 changed files with 801283 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
# Import the locust libraries
import getpass
from locust import HttpUser, task, between
# Request the username and password to login into NearBeach
username = input("\nPlease enter the username: ")
password = getpass.getpass("\nPlease enter the password: ")
class QuickstartUser(HttpUser):
wait_time = between(1, 2)
def on_start(self):
"""on_start is called when a Locust start before any task is scheduled"""
self.client.post(
"/login", json={"id_username": username, "id_password": password})
@task
def dashboard(self):
self.client.get("/")
@task(3)
def requirement_information(self):
for _ in range(10):
self.client.get("/requirement_information/1")