This project automates the process of adding and editing users in the Apex system using Python and the Helium library for browser automation.
- Python 3.6 or higher
- Firefox browser
pipfor managing Python packages
-
Clone the repository:
git clone https://github.com/Brand07/Python--Apex-Connect-And-Go.git
-
Install the required Python packages:
pip install -r requirements.txt
-
Create a
.envfile in the root directory with the following content:APEX_URL=www.apexconnectandgo.com APEX_USERNAME=your_username APEX_PASSWORD=your_password
-
Place the
New_Apex_Users.xlsxfile in the root directory. This file should contain the user data to be added or edited.
Run the script to start the automation process:
python main.pyLogs are written to both the console and a file named apex.log in the root directory. The log file contains information about the users added or edited and any errors encountered during the process.
Custom exceptions are defined in the exceptions.py file. The LoginError exception is raised if there is an issue with logging into the Apex system.
main.py: The main script that performs the automation.exceptions.py: Contains custom exception classes.requirements.txt: Lists the Python dependencies for the project..env: Contains environment variables for the Apex URL, username, and password.apex.log: Log file for the automation process.
This project is geared mostly to my environment. With that being said, you will more than likely need to change some things such as the group assignments, badge number format, etc. Open an issue if you'd like some assistance with this.
This project is licensed under the MIT License. See the LICENSE file for more details.