semvec/pypi-packages huggingface dataset:
horizoncli 0.7
A command line interface for Oracle Horizon Platform
Requires Python: >=3.9

# Prerequisites
1. Connect to OCNA VPN
2. Environment (will probably use virtualenv in final version)
    - Python3 3.9.1
    - pip3 20.3.4
    - requests 2.25.1
3. Add certificate to Python (will probably count on REQUESTS_CA_BUNDLE instead in final version)
    - Without this step, you will get `[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)`
      Guid to add certificate are show below:
    1. Find `cacert.pem` on your local machine. [How to - Step #1 in top answer](https://stackoverflow.com/questions/51925384/unable-to-get-local-issuer-certificate-when-using-requests-in-python)
    2. Append the content in `DigiCert.pem` by the end of `cacert.pem` you just find, and save the change.
4. We assume the customer is already onboarded

# Prepare Config File 
Config file defines the contract and data set. It provides nessessary information about the feed to control plane.

Sample config files which define single files are given under `config` folder. Template for creating and enabling single Parquet feed is also provided.

## Guid to Fill Config File
1. If contract already exists but contract details are given, will neither update the contract detail nor create a duplicate contract - Instead, existing 
contract will be attached to the feed.
2. If contract doesn't exist but contract details are not given, will stop the process and ask customers to update config file with contract details.
3. When specify sampleFilePath, please use absolute path.
4. `batchType` options: `"SNAPSHOT"`, `"APPEND"`
5. `cadence` options: `"HOURLY"`, `"DAILY"`, `"WEEKLY"`
6. `retain` options: `24`, `72`, `168`, `336`, `720`. These are numbers of hours, they represents 1, 3, 7, 14, 30 days respectively.

# Usage
To run this tool, run below command under the directory where `createAndEnableParquetFeeds.py` sits:
```
python3 createAndEnableParquetFeeds.py <config file, required> <horizon environment, optional> 
```
When you specify config file location, only absolute path is acceptable.

You can also choose environment, 3 options are given: 1) `unstable`, 2) `staging`, 3) `prod`. If environment is not provided, this program will take effect
to `prod` by default.

## Retry
If failure heppens, you can modify your config file based on the given error message, then retry with the updated config file. Or, you can go to Horizon
website to retry with a few clicks.

# Troubleshooting
1. Failure when creating feed `{'code': 'InvalidParameter', 'message': 'The data set TEST_CE_VIA_SCRIPT_V6 already exists'}`,  which means the given data 
set name already exists.
2. Failure when creating feed `{'errors': ['name must match ".*(?:^[a-zA-Z]+[a-zA-Z0-9_]*$).*"']}`, which means data set name must follow this pattern.
congrid 0.0.2
A colorful grid built into the console.
Requires Python: >=3.6

"# Congrid Information\n## Example\n```py\nimport congrid as c\ngrid = c.newGrid(5, 5)\ngrid.plot(4, 4, "1")\ngrid.plot(3, 4, "purple_1b")\ngrid.plot(2, 4, "green")\ngrid.plot(1, 4, "73")\ngrid.plot(0, 4, "6")\ngrid.show()\n```\n## Documentation\n### `newGrid()`\nReturns a Grid.\n### `Grid` Object\n#### `Show`\nPrints grid to the console.\n#### `Plot`\nPlot a grid.\n\n`grid.plot(x, y, color)`\n\n`x` - int\n`y` - int\n`color` - string, defaults to the default color set in `newGrid()`\n## Colors\n![List Of Colors](https://congridimgs.ucyt5040.repl.co/g.png)"