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

ONLY .txt FILE IS AVAILABLE AS OUTPUT AT THIS TIME!

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
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.0.4.tar.gz (13.0 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.0.4-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for autoupdate_languages2-1.0.4.tar.gz
Algorithm Hash digest
SHA256 741e92367482937090bbd72486e6f1cf87ff7bc33847c846d987e457116ce7bc
MD5 17c212a2ceaf3528781ffc629296f348
BLAKE2b-256 a43a3e1fab467595afef0533c66281c1a0a51ffe59b44e3bb1060853ce6503aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autoupdate_languages2-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f0485685908004c6951a46041a2e8e9772cabf20836e67a51d671d4f673900ba
MD5 16db52abb1de10d94ac7b03e7cfb492f
BLAKE2b-256 8ceffe46b427d8df31cb44382631333a779408f36abad465afb2ab0311f22cd2

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