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 (click to expand)

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 (click to expand)

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 (click to expand)

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.1.4.tar.gz (13.4 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.1.4-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for autoupdate_languages2-1.1.4.tar.gz
Algorithm Hash digest
SHA256 7288335ce1712b4974697df15adff2f9931a696cdd016cdc6d93d45a014e3f3d
MD5 5e4fecf9296f6a851525d4f599c0c0f4
BLAKE2b-256 c38a18a2d4e82e63d4e8b8a120da6fc1a42fe2c6632db0a180111948936e7ee7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autoupdate_languages2-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c19a09461929baa18fb8831f313066ab38d510b1648302978539f5507c565ace
MD5 60f3b7ef513d85de02048bba10cd2392
BLAKE2b-256 740ac4d00ce8f16d1c93339cc75ec7a6298a52471334aa5d5ce84cdaae7ded09

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