Skip to main content

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 .txt FILE 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 monthly
  • 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

autoupdate_languages2-1.2.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoupdate_languages2-1.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file autoupdate_languages2-1.2.0.tar.gz.

File metadata

  • Download URL: autoupdate_languages2-1.2.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for autoupdate_languages2-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ece97bc5fdd45ae213d00423fcc840aa020dc29c16d3bad136a8729659c0b035
MD5 9e04bd6887b24e1436da02b4fd408adf
BLAKE2b-256 ee8f4c98146ad45b01cb08d9ad14738fc096957543f6c4bdfd325fa4444ee499

See more details on using hashes here.

File details

Details for the file autoupdate_languages2-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for autoupdate_languages2-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6584ad5d50a99c416fb1cd9d15c7090332e89d8a2149d8ca58a2ac5398d89e47
MD5 b18586b75bf4f64c2a072b85fc464535
BLAKE2b-256 fcb54c721b74b3bf19cb64b9f927a5164207ce24857a606530db089fdb6a5a9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page