Skip to main content

Automatically updates and maintains a list of programming languages

Project description

AutoUpdate Languages 2

NOTE: PROJECT DISABLED UNTIL FURTHER NOTICE - 11/2/2025

NOTE: At this time, this program uses a preset list of programming languages and does not have an active schedular extension. This is because I have not found a website that current maintains a list of programming langauges that the robots.txt file will allow me to scrape. If anyone knows of one, please create a new issue on the issues tab

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 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

autoupdate_languages2-2.0.2-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for autoupdate_languages2-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f60f884578defdc4f87dfcc6034cb1814018d45755414ff24a08a4dc5eedd92d
MD5 3e1324a744caea49c4e6bb6a2cd2b61c
BLAKE2b-256 6e2b147d3b5979e5d872d53991ed2c3227f7229eedf8a012594b41de0794adf1

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