diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:08:02 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:08:02 +0000 |
| commit | 645887fb0f3baee782bfdccd2be125678ff32f9d (patch) | |
| tree | cdd8f4b78ff598b4affaae3c00e49b490eb8189c | |
| parent | e44e3c422879d22fa3018869f5bf7d3542217cb7 (diff) | |
automatic import of python-montecarlodataopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-montecarlodata.spec | 578 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 580 insertions, 0 deletions
@@ -0,0 +1 @@ +/montecarlodata-0.52.0.tar.gz diff --git a/python-montecarlodata.spec b/python-montecarlodata.spec new file mode 100644 index 0000000..43028b9 --- /dev/null +++ b/python-montecarlodata.spec @@ -0,0 +1,578 @@ +%global _empty_manifest_terminate_build 0 +Name: python-montecarlodata +Version: 0.52.0 +Release: 1 +Summary: Monte Carlo's CLI +License: Apache Software License (Apache 2.0) +URL: https://www.montecarlodata.com/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/d9/a9bbb5434a8d3b5e4869910c0441a92698eceef3e28bbd076edca4d1a3fb/montecarlodata-0.52.0.tar.gz +BuildArch: noarch + +Requires: python3-boto3 +Requires: python3-click +Requires: python3-click-config-file +Requires: python3-requests +Requires: python3-retry +Requires: python3-tabulate +Requires: python3-dataclasses-json +Requires: python3-PyYAML +Requires: python3-box +Requires: python3-pycarlo +Requires: python3-Jinja2 + +%description +# Monte Carlo CLI + +Monte Carlo's Alpha CLI! + +## Installation + +Requires Python 3.7 or greater. Normally you can install and update using `pip`. For instance: + +```shell +pip install virtualenv +virtualenv venv +. venv/bin/activate + +pip install -U montecarlodata +``` + +Developers of the CLI can use: + +```shell +pip install virtualenv +make install +. venv/bin/activate +pre-commit install +``` + +Either way confirm the installation by running: + +```shell +montecarlo --version +``` + +If the Python requirement does not work for you please reach out to `support@montecarlodata.com`. Docker is an option. + +## Quick start + +First time users can configure the tool by following the onscreen prompts: + +```shell +montecarlo configure +``` + +MCD tokens can be generated from the [dashboard](https://getmontecarlo.com/get-token). + +Any AWS profiles or regions should be for the account the Data Collector (DC) is deployed to. If you are not using the CLI for onboarding or managing a DC, you may leave the AWS configuration blank. + +Use the `--help` flag for details on any advanced options (e.g. creating multiple montecarlo profiles) or +see docs [here][cli-docs]. + +That's it! You can always validate your connection with: + +```shell +montecarlo validate +``` + +## User settings + +Any configuration set by `montecarlo configure` can be found in `~/.mcd/` by default. + +The MCD ID and Token can be overwritten, or even set, by the environment: + +- `MCD_DEFAULT_API_ID` +- `MCD_DEFAULT_API_TOKEN` + +These two are required either as part of `configure` or as environment variables. +For AWS, system defaults are used if not set as part of `configure`. + +The following values can also be set by the environment: + +- `MCD_API_ENDPOINT` - Overwrite the default API endpoint +- `MCD_VERBOSE_ERRORS` - Enable verbose logging on errors (default=false) + +## Help + +Documentation for commands, options, and arguments can be found [here][cli-docs]. + +You can also use `montecarlo help` to echo all help text or use the `--help` flag on any command. + +## Examples + +### Using Docker from a local installation + +```shell +docker build -t montecarlo . +docker run -v ${HOME}/.aws/credentials:/root/.aws/credentials:ro \ + -e MCD_DEFAULT_API_ID='<ID>' \ + -e MCD_DEFAULT_API_TOKEN='<TOKEN>' \ + -e AWS_DEFAULT_PROFILE='<PROFILE>' \ + -e AWS_DEFAULT_REGION='us-east-1' \ + montecarlo --version +``` + +Replace `--version` with any sub-commands or options. If interacting with files those directories will probably need to be mounted too. + +### Configure a named profile with custom config-path + +```shell +$ montecarlo configure --profile-name zeus --config-path . +Key ID: 1234 +Secret: +AWS profile name []: shiva +AWS region [us-east-1]: + +$ cat ./profiles.ini +[zeus] +mcd_id = 1234 +mcd_token = 5678 +aws_profile = shiva +aws_region = us-east-1 +``` + +### List active integrations + +```shell +$ montecarlo integrations list +╒══════════════════╤══════════════════════════════════════╤══════════════════════════════════╕ +│ Integration │ ID │ Created on (UTC) │ +╞══════════════════╪══════════════════════════════════════╪══════════════════════════════════╡ +│ Odin │ 58005657-2914-4701-9a11-260ac425b14e │ 2021-01-02T01:30:52.806602+00:00 │ +├──────────────────┼──────────────────────────────────────┼──────────────────────────────────┤ +│ Thor │ 926816bd-ab17-4f95-a953-fa14482c59de │ 2021-01-02T01:31:19.892205+00:00 │ +├──────────────────┼──────────────────────────────────────┼──────────────────────────────────┤ +│ Loki │ 1cf1dc0d-d8ec-4c85-8e64-57ab2ad8e023 │ 2021-01-02T01:32:37.709747+00:00 │ +╘══════════════════╧══════════════════════════════════════╧══════════════════════════════════╛ +``` + +### Apply monitors configuration + +```shell +$ montecarlo monitors apply --namespace my-monitors + +Gathering monitor configuration files. +- models/customer_success/schema.yml - Embedded monitor configuration found. +- models/customer_success/schema.yml - Monitor configuration found. +- models/lineage/schema.yml - Embedded monitor configuration found. + +Modifications: +- ResourceModificationType.UPDATE - Monitor: type=stats, table=analytics:prod.customer_360 +- ResourceModificationType.UPDATE - Monitor: type=categories, table=analytics:prod.customer_360 +- ResourceModificationType.UPDATE - Monitor: type=stats, table=analytics:prod_lineage.lineage_nodes +- ResourceModificationType.UPDATE - Freshness SLI: table=analytics:prod.customer_360, freshness_threshold=30 +``` + +### Import DBT manifest + +```shell +$ montecarlo import dbt-manifest --dbt-manifest-file target/manifest.json + +Importing DBT objects into Monte Carlo catalog. please wait... + +Imported a total of 51 DBT objects into Monte Carlo catalog. +``` + +## Tests and Releases + +Locally `make test` will run all tests. CircleCI manages all testing for deployment. + +To publish a new release, simply add a new version tag, e.g. `v1.0.0`, and push that tag to GitHub. CircleCI will take care of publishing a new package to [PyPI](https://pypi.org/project/montecarlodata/) and generating documentation. + +## License + +Apache 2.0 - See the [LICENSE](http://www.apache.org/licenses/LICENSE-2.0) for more information. + +[cli-docs]: https://clidocs.getmontecarlo.com/ + + + + +%package -n python3-montecarlodata +Summary: Monte Carlo's CLI +Provides: python-montecarlodata +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-montecarlodata +# Monte Carlo CLI + +Monte Carlo's Alpha CLI! + +## Installation + +Requires Python 3.7 or greater. Normally you can install and update using `pip`. For instance: + +```shell +pip install virtualenv +virtualenv venv +. venv/bin/activate + +pip install -U montecarlodata +``` + +Developers of the CLI can use: + +```shell +pip install virtualenv +make install +. venv/bin/activate +pre-commit install +``` + +Either way confirm the installation by running: + +```shell +montecarlo --version +``` + +If the Python requirement does not work for you please reach out to `support@montecarlodata.com`. Docker is an option. + +## Quick start + +First time users can configure the tool by following the onscreen prompts: + +```shell +montecarlo configure +``` + +MCD tokens can be generated from the [dashboard](https://getmontecarlo.com/get-token). + +Any AWS profiles or regions should be for the account the Data Collector (DC) is deployed to. If you are not using the CLI for onboarding or managing a DC, you may leave the AWS configuration blank. + +Use the `--help` flag for details on any advanced options (e.g. creating multiple montecarlo profiles) or +see docs [here][cli-docs]. + +That's it! You can always validate your connection with: + +```shell +montecarlo validate +``` + +## User settings + +Any configuration set by `montecarlo configure` can be found in `~/.mcd/` by default. + +The MCD ID and Token can be overwritten, or even set, by the environment: + +- `MCD_DEFAULT_API_ID` +- `MCD_DEFAULT_API_TOKEN` + +These two are required either as part of `configure` or as environment variables. +For AWS, system defaults are used if not set as part of `configure`. + +The following values can also be set by the environment: + +- `MCD_API_ENDPOINT` - Overwrite the default API endpoint +- `MCD_VERBOSE_ERRORS` - Enable verbose logging on errors (default=false) + +## Help + +Documentation for commands, options, and arguments can be found [here][cli-docs]. + +You can also use `montecarlo help` to echo all help text or use the `--help` flag on any command. + +## Examples + +### Using Docker from a local installation + +```shell +docker build -t montecarlo . +docker run -v ${HOME}/.aws/credentials:/root/.aws/credentials:ro \ + -e MCD_DEFAULT_API_ID='<ID>' \ + -e MCD_DEFAULT_API_TOKEN='<TOKEN>' \ + -e AWS_DEFAULT_PROFILE='<PROFILE>' \ + -e AWS_DEFAULT_REGION='us-east-1' \ + montecarlo --version +``` + +Replace `--version` with any sub-commands or options. If interacting with files those directories will probably need to be mounted too. + +### Configure a named profile with custom config-path + +```shell +$ montecarlo configure --profile-name zeus --config-path . +Key ID: 1234 +Secret: +AWS profile name []: shiva +AWS region [us-east-1]: + +$ cat ./profiles.ini +[zeus] +mcd_id = 1234 +mcd_token = 5678 +aws_profile = shiva +aws_region = us-east-1 +``` + +### List active integrations + +```shell +$ montecarlo integrations list +╒══════════════════╤══════════════════════════════════════╤══════════════════════════════════╕ +│ Integration │ ID │ Created on (UTC) │ +╞══════════════════╪══════════════════════════════════════╪══════════════════════════════════╡ +│ Odin │ 58005657-2914-4701-9a11-260ac425b14e │ 2021-01-02T01:30:52.806602+00:00 │ +├──────────────────┼──────────────────────────────────────┼──────────────────────────────────┤ +│ Thor │ 926816bd-ab17-4f95-a953-fa14482c59de │ 2021-01-02T01:31:19.892205+00:00 │ +├──────────────────┼──────────────────────────────────────┼──────────────────────────────────┤ +│ Loki │ 1cf1dc0d-d8ec-4c85-8e64-57ab2ad8e023 │ 2021-01-02T01:32:37.709747+00:00 │ +╘══════════════════╧══════════════════════════════════════╧══════════════════════════════════╛ +``` + +### Apply monitors configuration + +```shell +$ montecarlo monitors apply --namespace my-monitors + +Gathering monitor configuration files. +- models/customer_success/schema.yml - Embedded monitor configuration found. +- models/customer_success/schema.yml - Monitor configuration found. +- models/lineage/schema.yml - Embedded monitor configuration found. + +Modifications: +- ResourceModificationType.UPDATE - Monitor: type=stats, table=analytics:prod.customer_360 +- ResourceModificationType.UPDATE - Monitor: type=categories, table=analytics:prod.customer_360 +- ResourceModificationType.UPDATE - Monitor: type=stats, table=analytics:prod_lineage.lineage_nodes +- ResourceModificationType.UPDATE - Freshness SLI: table=analytics:prod.customer_360, freshness_threshold=30 +``` + +### Import DBT manifest + +```shell +$ montecarlo import dbt-manifest --dbt-manifest-file target/manifest.json + +Importing DBT objects into Monte Carlo catalog. please wait... + +Imported a total of 51 DBT objects into Monte Carlo catalog. +``` + +## Tests and Releases + +Locally `make test` will run all tests. CircleCI manages all testing for deployment. + +To publish a new release, simply add a new version tag, e.g. `v1.0.0`, and push that tag to GitHub. CircleCI will take care of publishing a new package to [PyPI](https://pypi.org/project/montecarlodata/) and generating documentation. + +## License + +Apache 2.0 - See the [LICENSE](http://www.apache.org/licenses/LICENSE-2.0) for more information. + +[cli-docs]: https://clidocs.getmontecarlo.com/ + + + + +%package help +Summary: Development documents and examples for montecarlodata +Provides: python3-montecarlodata-doc +%description help +# Monte Carlo CLI + +Monte Carlo's Alpha CLI! + +## Installation + +Requires Python 3.7 or greater. Normally you can install and update using `pip`. For instance: + +```shell +pip install virtualenv +virtualenv venv +. venv/bin/activate + +pip install -U montecarlodata +``` + +Developers of the CLI can use: + +```shell +pip install virtualenv +make install +. venv/bin/activate +pre-commit install +``` + +Either way confirm the installation by running: + +```shell +montecarlo --version +``` + +If the Python requirement does not work for you please reach out to `support@montecarlodata.com`. Docker is an option. + +## Quick start + +First time users can configure the tool by following the onscreen prompts: + +```shell +montecarlo configure +``` + +MCD tokens can be generated from the [dashboard](https://getmontecarlo.com/get-token). + +Any AWS profiles or regions should be for the account the Data Collector (DC) is deployed to. If you are not using the CLI for onboarding or managing a DC, you may leave the AWS configuration blank. + +Use the `--help` flag for details on any advanced options (e.g. creating multiple montecarlo profiles) or +see docs [here][cli-docs]. + +That's it! You can always validate your connection with: + +```shell +montecarlo validate +``` + +## User settings + +Any configuration set by `montecarlo configure` can be found in `~/.mcd/` by default. + +The MCD ID and Token can be overwritten, or even set, by the environment: + +- `MCD_DEFAULT_API_ID` +- `MCD_DEFAULT_API_TOKEN` + +These two are required either as part of `configure` or as environment variables. +For AWS, system defaults are used if not set as part of `configure`. + +The following values can also be set by the environment: + +- `MCD_API_ENDPOINT` - Overwrite the default API endpoint +- `MCD_VERBOSE_ERRORS` - Enable verbose logging on errors (default=false) + +## Help + +Documentation for commands, options, and arguments can be found [here][cli-docs]. + +You can also use `montecarlo help` to echo all help text or use the `--help` flag on any command. + +## Examples + +### Using Docker from a local installation + +```shell +docker build -t montecarlo . +docker run -v ${HOME}/.aws/credentials:/root/.aws/credentials:ro \ + -e MCD_DEFAULT_API_ID='<ID>' \ + -e MCD_DEFAULT_API_TOKEN='<TOKEN>' \ + -e AWS_DEFAULT_PROFILE='<PROFILE>' \ + -e AWS_DEFAULT_REGION='us-east-1' \ + montecarlo --version +``` + +Replace `--version` with any sub-commands or options. If interacting with files those directories will probably need to be mounted too. + +### Configure a named profile with custom config-path + +```shell +$ montecarlo configure --profile-name zeus --config-path . +Key ID: 1234 +Secret: +AWS profile name []: shiva +AWS region [us-east-1]: + +$ cat ./profiles.ini +[zeus] +mcd_id = 1234 +mcd_token = 5678 +aws_profile = shiva +aws_region = us-east-1 +``` + +### List active integrations + +```shell +$ montecarlo integrations list +╒══════════════════╤══════════════════════════════════════╤══════════════════════════════════╕ +│ Integration │ ID │ Created on (UTC) │ +╞══════════════════╪══════════════════════════════════════╪══════════════════════════════════╡ +│ Odin │ 58005657-2914-4701-9a11-260ac425b14e │ 2021-01-02T01:30:52.806602+00:00 │ +├──────────────────┼──────────────────────────────────────┼──────────────────────────────────┤ +│ Thor │ 926816bd-ab17-4f95-a953-fa14482c59de │ 2021-01-02T01:31:19.892205+00:00 │ +├──────────────────┼──────────────────────────────────────┼──────────────────────────────────┤ +│ Loki │ 1cf1dc0d-d8ec-4c85-8e64-57ab2ad8e023 │ 2021-01-02T01:32:37.709747+00:00 │ +╘══════════════════╧══════════════════════════════════════╧══════════════════════════════════╛ +``` + +### Apply monitors configuration + +```shell +$ montecarlo monitors apply --namespace my-monitors + +Gathering monitor configuration files. +- models/customer_success/schema.yml - Embedded monitor configuration found. +- models/customer_success/schema.yml - Monitor configuration found. +- models/lineage/schema.yml - Embedded monitor configuration found. + +Modifications: +- ResourceModificationType.UPDATE - Monitor: type=stats, table=analytics:prod.customer_360 +- ResourceModificationType.UPDATE - Monitor: type=categories, table=analytics:prod.customer_360 +- ResourceModificationType.UPDATE - Monitor: type=stats, table=analytics:prod_lineage.lineage_nodes +- ResourceModificationType.UPDATE - Freshness SLI: table=analytics:prod.customer_360, freshness_threshold=30 +``` + +### Import DBT manifest + +```shell +$ montecarlo import dbt-manifest --dbt-manifest-file target/manifest.json + +Importing DBT objects into Monte Carlo catalog. please wait... + +Imported a total of 51 DBT objects into Monte Carlo catalog. +``` + +## Tests and Releases + +Locally `make test` will run all tests. CircleCI manages all testing for deployment. + +To publish a new release, simply add a new version tag, e.g. `v1.0.0`, and push that tag to GitHub. CircleCI will take care of publishing a new package to [PyPI](https://pypi.org/project/montecarlodata/) and generating documentation. + +## License + +Apache 2.0 - See the [LICENSE](http://www.apache.org/licenses/LICENSE-2.0) for more information. + +[cli-docs]: https://clidocs.getmontecarlo.com/ + + + + +%prep +%autosetup -n montecarlodata-0.52.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-montecarlodata -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.52.0-1 +- Package Spec generated @@ -0,0 +1 @@ +14001663eab180cc9114d6d5757f0fb9 montecarlodata-0.52.0.tar.gz |
