Compare commits

...

2 Commits

8 changed files with 213 additions and 1 deletions

11
.idea/aws.xml Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="accountSettings">
<option name="activeRegion" value="us-east-1" />
<option name="recentlyUsedRegions">
<list>
<option value="us-east-1" />
</list>
</option>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

113
.idea/workspace.xml Normal file
View File

@ -0,0 +1,113 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="dd534306-bad2-4a21-9900-301e2372c24e" name="Changes" comment="pyproject.toml">
<change afterPath="$PROJECT_DIR$/LICENSE" afterDir="false" />
<change afterPath="$PROJECT_DIR$/controls/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/requirements.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pyproject.toml" beforeDir="false" afterPath="$PROJECT_DIR$/pyproject.toml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Python Script" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_BRANCH_BY_REPOSITORY">
<map>
<entry key="$PROJECT_DIR$" value="master" />
</map>
</option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
<option name="UPDATE_TYPE" value="REBASE" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 7
}</component>
<component name="ProjectId" id="2W26FqrPo9vBvfRQlTjZRBbveHH" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;main&quot;,
&quot;last_opened_file_path&quot;: &quot;/home/petr/ProgProjects/memorizer&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;editing.templates&quot;
}
}</component>
<component name="RunManager">
<configuration name="main" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
<module name="memorizer" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="dd534306-bad2-4a21-9900-301e2372c24e" name="Changes" comment="" />
<created>1695918229877</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1695918229877</updated>
</task>
<task id="LOCAL-00001" summary="-">
<option name="closed" value="true" />
<created>1695918258831</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1695918258831</updated>
</task>
<task id="LOCAL-00002" summary="pyproject.toml">
<option name="closed" value="true" />
<created>1695920407450</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1695920407450</updated>
</task>
<option name="localTasksCounter" value="3" />
<servers />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="-" />
<MESSAGE value="pyproject.toml" />
<option name="LAST_COMMIT_MESSAGE" value="pyproject.toml" />
</component>
</project>

7
LICENSE Normal file
View File

@ -0,0 +1,7 @@
Copyright 2023 PETR ANDREEV
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,2 +1,39 @@
# advanced-python-homework-2023
## Creating a Virtual Environment and Installing Dependencies
To set up a virtual environment for your project and install dependencies, follow these steps:
1. **Install Python 3.11:**
Make sure you have Python 3.11 installed on your system. You can download it from the official Python website.
2. **Create a Virtual Environment:**
Open your terminal or command prompt and navigate to your project directory. Then, run the following command to create a virtual environment. Replace `<venv>` with your preferred virtual environment name:
```bash
python3.11 -m venv <venv>
3. ** Activate the Virtual Environment:On Windows:**
On Windows: .\<venv>\Scripts\activate
On macOS and Linux: source <venv>/bin/activate
Your command prompt should now show the virtual environment name, indicating that it's active.
4. ** Install Dependencies: **
Use pip to install the project's dependencies from the requirements.txt file. Replace <path_to_requirements.txt> with the actual path to your requirements.txt file:
pip install -r <path_to_requirements.txt>
This will install all the necessary packages for your project.
5. ** Deactivate the Virtual Environment: **
This returns you to your system's global Python environment.
Now you have a virtual environment set up for your project with all the required dependencies installed. You can activate it whenever you work on your project to isolate its dependencies from the system-wide Python installation.
## Creating Documentation
1. ** Open 'Controls' directory **
On Linux: $ cd ./memorizer/controls
2. ** Open 'Controls' directory **
On Linux: $ sphinx-quickstart
3. Follow the instructions

20
controls/__init__.py Normal file
View File

@ -0,0 +1,20 @@
"""
SCADA System Package
This Python package represents a SCADA (Supervisory Control and Data Acquisition) system, which is designed to monitor and control industrial processes, infrastructure, and equipment. SCADA systems play a crucial role in various industries, such as manufacturing, energy, and utilities.
Key Features of a SCADA System:
- Real-time Data Acquisition: SCADA systems collect data from sensors, devices, and equipment in real-time.
- Remote Monitoring: Operators can remotely monitor and visualize the status and performance of processes.
- Control and Automation: SCADA systems allow for remote control and automation of industrial processes.
- Alarm and Event Management: They provide alerting and event handling capabilities for timely response to issues.
- Historical Data Logging: SCADA systems store historical data for analysis, reporting, and compliance.
- User Authentication and Access Control: Access to the system is secured through user authentication and role-based access control.
- Data Visualization: They offer rich data visualization tools like charts, graphs, and dashboards.
- Integration with PLCs and RTUs: SCADA systems interface with Programmable Logic Controllers (PLCs) and Remote Terminal Units (RTUs).
- Reporting and Analysis: They support data analysis, reporting, and trend analysis for process optimization.
A well-designed SCADA system is crucial for efficient and safe operation in various industrial settings.
For more details on specific functionalities and usage, please refer to the package modules and documentation.
"""

15
pyproject.toml Normal file
View File

@ -0,0 +1,15 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.poetry]
name = "Memorizer"
version = "0.0.1"
description = "A utility that will help you learn new English words, mathematical theorems with proofs, etc. It doesn't matter what kind of object you want to learn. You can upload a question and answer, set repetition frequency and response time. The basic idea is to ask you what you have chosen, for the time you have chosen, then show the answer."
authors = ["Petr Andreev <petr96andreev@gmail.com>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.dev-dependencies]

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
Sphinx
Pylint
MyPy