Automatically updates and maintains a list of programming languages
Project description
AutoUpdate Languages 2
An asynchronous python package that maintains an updated list of programming languages by scraping Programming Languages every 90 days. This application is designed to be a background task loop and is ran asynchrounously.
Installation
pip install autoupdate-languages2
Usage
To run the package as a background task in general or in your application
from autoupdate_languages2 import AutoUpdateLanguages2
if __name__ == '__main__':
# Direct Call to the start method to start the loop
AutoUpdateLanguages2().start()
# OOP call
auto_update_langs = AutoUpdateLanguages2()
# call the start method to start the loop
auto_update_langs.start()
To use the package as an api call to create a file within the current directory of where your file was executed from
ONLY
.txtFILE IS AVAILABLE AS OUTPUT AT THIS TIME!
from autoupdate_languages2 import AutoUpdateLanguages2
import os
def create_lang_list_file():
curr_dir = os.path.abspath(os.path.dirname(__file__)) # current path of where this file was executed
output_dir = os.path.join(curr_dir, "output") # add the output dir './output/
output_file = os.path.join(output_dir, "lang_list.txt") # add the desired file to the path -> only .txt works at this time
auto_update_langs = AutoUpdateLanguages2()
all_langs = auto_update_langs.generate_file(output_file)
create_lang_list_file()
To use the python package as an api call to get the list of known programming languages
Be careful with how often you query this as this does a fresh webscrape on each query. It is best to use the
.generate_file(file_path)method to generate the file one time and then work with the data from there!
from autoupdate_languages2 import AutoUpdateLanguages2
auto_update_langs = AutoUpdateLanguages2()
lang_list = auto_update_langs.get_lang_list()
Features
- Automatically updates language list every 90 days
- Lightweight and easy to use
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autoupdate_languages2-1.2.1.tar.gz.
File metadata
- Download URL: autoupdate_languages2-1.2.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e26919351255c7c46cd4d16bcdad7f4784fb8c97e91dd95f9f68414fee5d568
|
|
| MD5 |
238de015b342766f3dd52014a593e248
|
|
| BLAKE2b-256 |
3a352625cc0b1927b761f1b143ea5823f439bda64309b8cac1b7ada8e2385303
|
File details
Details for the file autoupdate_languages2-1.2.1-py3-none-any.whl.
File metadata
- Download URL: autoupdate_languages2-1.2.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0af9143483ba1a55cb8747bbd4293797e201dc050ab11a2ef19b955146cb7bd4
|
|
| MD5 |
027aef7a020aa5b0e2a68fde2cfbb40c
|
|
| BLAKE2b-256 |
923fc32a7e1322218e04845b7c104da490cbfc2a51f7c1ce2f9ff0919cc6ac85
|