CVM¶
Responsible for handling date adjustments and generating CVM links.
- class CvmLink[source]
Bases:
objectClass responsible for generating CVM dataset download links.
- url
Base URL for CVM dataset downloads.
- Type:
str
- zip_extension
File extension for the compressed dataset.
- Type:
str
- adjust_data(num_month, year)[source]
Formats the month and year values, ensuring the month has two digits.
- Parameters:
num_month (int) – Month value.
year (int or str) – Year value.
- Returns:
A tuple containing the formatted month and year as strings.
- Return type:
tuple
- create_link(month, year)[source]
Creates the CVM dataset download link based on the given month and year.
- Parameters:
month (int or str) – Month value.
year (int or str) – Year value.
- Returns:
Complete URL for downloading the dataset.
- Return type:
str