{"id":21363395,"url":"https://github.com/nsstnc/currency_rates","last_synced_at":"2026-04-18T04:02:53.684Z","repository":{"id":242236472,"uuid":"809008224","full_name":"nsstnc/currency_rates","owner":"nsstnc","description":"📅📈 Web application for viewing currency rates","archived":false,"fork":false,"pushed_at":"2024-06-03T21:38:15.000Z","size":446,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T07:12:33.971Z","etag":null,"topics":["beatifulsoup","pandas","python","sqlalchemy","sqlite","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nsstnc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-01T12:23:54.000Z","updated_at":"2024-11-30T08:49:59.000Z","dependencies_parsed_at":"2024-06-01T16:33:08.134Z","dependency_job_id":"d1b71d00-6f21-4d1c-afc8-16892d72d223","html_url":"https://github.com/nsstnc/currency_rates","commit_stats":null,"previous_names":["nsstnc/currency_rates"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nsstnc/currency_rates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsstnc%2Fcurrency_rates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsstnc%2Fcurrency_rates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsstnc%2Fcurrency_rates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsstnc%2Fcurrency_rates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsstnc","download_url":"https://codeload.github.com/nsstnc/currency_rates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsstnc%2Fcurrency_rates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beatifulsoup","pandas","python","sqlalchemy","sqlite","streamlit"],"created_at":"2024-11-22T06:19:23.875Z","updated_at":"2026-04-18T04:02:53.669Z","avatar_url":"https://github.com/nsstnc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Currency Rates Web Application\n\n## Overview\n\nThis project is a web application that displays exchange rates for various countries. Users can select a date range and the desired way of displaying information. When selecting \"Plot,\" the application generates a graph showing the relative changes in exchange rates compared to the default date specified in the database.\n\n![Table View](markdown-images/table.png)\n![Plot View](markdown-images/plot.png)\n\n## Features\n\n- Display exchange rates in a tabular format\n- View changes in exchange rates as a graph\n- Select a date range for historical data\n- Data is fetched from [Finmarket](https://www.finmarket.ru) on the first request and cached in an SQLite database\n- The list of countries and their main currencies is parsed from [IBAN](https://www.iban.ru/currency-codes) when the application page is refreshed, with only new or modified records being added to the database\n\n## Tech Stack\n\n- **Backend**: Python, SQLite, SQLAlchemy\n- **Data Processing**: Pandas, BeautifulSoup\n- **Frontend**: Streamlit\n\n## Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/nsstnc/currency_rates.git\n    cd currency_rates\n    ```\n\n2. Run the setup script to configure the virtual environment and start the project:\n\n    ```bash\n    sh setup.sh  # Use `setup.bat` on Windows\n    ```\n\n## Usage\n\n1. After running the setup, the browser page should open automatically. If it does not, open your web browser and navigate to `http://localhost:8501`.\n\n## Application Workflow\n\n1. **Initial Setup**:\n    - On the first request, exchange rates are parsed from [Finmarket](https://www.finmarket.ru) and saved to an SQLite database.\n    - The list of countries and their main currencies is fetched from [IBAN](https://www.iban.ru/currency-codes) and updated in the database if there are new or modified records.\n\n2. **User Interaction**:\n    - The user selects a date range within 2 years for which they want to view exchange rates.\n    - The user selects the countries whose main currencies they want to see.\n    - The user chooses how to display the data: in a table or as a graph.\n\n3. **Data Display**:\n    - If the requested data is already in the database, it is retrieved and displayed.\n    - If the data is not in the database, it is fetched from Finmarket, saved to the database, and then displayed.\n\n## File Structure\ncurrency_rates/  \n├── markdown-images/ # Directory for storing documentation images  \n├── data_manager.py # Class for data management  \n├── database.db # SQLite database file (created after the first application run)  \n├── database.py # Database setup class  \n├── main.py # Main application file - Streamlit interface  \n├── models.py # Database table models  \n├── parser.py # Class implementing data parsing functions  \n├── README.md # Project documentation  \n├── requirements.txt # List of dependencies  \n├── setup.bat # Script to set up the virtual environment and start the project for Windows systems  \n├── setup.sh # Script to set up the virtual environment and start the project for UNIX systems  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsstnc%2Fcurrency_rates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsstnc%2Fcurrency_rates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsstnc%2Fcurrency_rates/lists"}