semvec/pypi-packages huggingface dataset:
problem 0.2.3
Need more problem ??
License: MIT
Keywords: problem,problemm,problemmm

Need more problem?
==================

install
~~~~~~~

.. code:: python

    pip install problem

google sheet
~~~~~~~~~~~~

.. code:: python

    sheet_type = 1 #0(read-only), 1(read and write)
    url_id = '1mR5oLXxxXxxSdSSegtbxxxxxxxxL6Da7VSN_ThpSs' #id of share link
    json = {'type': 'service_account',
            'project_id': 'demo',
            'private_key_id': 'cxxxc5xxxxxxxxxxxxxxx74xxxxxxx15x41',
            'private_key': '-----BEGIN PRIVATE KEY-----\xxxxxxxxxxxxxxxxxxxxx\n-----END PRIVATE KEY-----\n',
            'client_email': 'email@demo.iam.gserviceaccount.com',
            'client_id': '2xxx98xxxxxxxx475xx42',
            'auth_uri': 'https://accounts.google.com/o/oauth2/auth',
            'token_uri': 'https://oauth2.googleapis.com/token',
            'auth_provider_x509_cert_url': 'https://www.googleapis.com/oauth2/v1/certs',
            'client_x509_cert_url': 'https://www.googleapis.com/robot/v1/metadata/x5/email@demo.iam.gserviceaccount.com'}

.. code:: python

    gs = gsheet(sheet_type, json, url_id) #connect to sheet
    sheet1 = gs.select_worksheet(1) #select sheet page
    gs.update_row(sheet1, ['1', '20/12/2020', '200USD', 100]) #update row in sheet page

google drive
~~~~~~~~~~~~

.. code:: python

    url_id = '1mR5oLXxxXxxSdSSegtbxxxxxxxxL6Da7VSN_ThpSs' #id of share link
    gd = gdrive()
    gd.download(url_id) #download file
haber-utils 0.4.0
General utility functions that keep being rewritten
License: MIT
Requires Python: >3.4

CreateNewDirec
------
**Description:**

Will create a new directory. If the directory already exists it will delete the files within it.

**Inputs:**
- base_direc: string that represents the directory in which the new directory will be made
- name: string that represents the name of the new directory

**Outputs:**
- new_direc: string that represents the path of the new directory

UpdateProgress
------
**Description:**

Will print a status bar with the progress of the current progress.

**Inputs:**
- progress: float that is the current progress of the process
- symbol: an additional value to be printed (type is variable), not required then input ""

**Outputs:**
- prints a status bar showing the completion of the process

WriteDictToCSV
------
**Description:**

Will write a dict or a list of dicts to a csv.

**Inputs:**
- base_direc: string that represents the directory in which the file will be written
- details: dict or list of dicts that will be written into the target file
- csv_name: string that represents the name of the csv

**Outputs:**
- new_csv: string that represents the path of the created csv_file

CheckIfFileExists
------
**Description:**

Checks if a file currently exists.

**Inputs:**
- filename: string that represents the path of the file to be checked

**Outputs:**
- bool: True if the file exists or False if it does not

ConvertDictToList
------
**Description:**

Will convert a dictionary to a list without its respective keys.

**Inputs:**
- details: dict that the information will be converted to list format

**Outputs:**
- output_list: list that holds the extracted information

WriteOrAppendCSV
------
**Description:**

Will create or append a csv with a row of information for a specified csv and dictionary.

**Inputs:**
- csv_file: string that is the path for the csv file that will either be created or appended with the data
- details: dict that contains the data to append or write to the specified csv_file

**Outputs:**
- csv_file: string that is the path for the csv file that will either be created or appended with the data

RoundValueDown
------
**Description:**

Will round down a float to the specified amount of decimal places.

**Inputs:**
- number: float that represents the number that will be rounded down
- decimals: int that represents the number of decimal points to be rounded to

**Outputs:**
- new_val: float that is number round to decimals amount of decimal points