airbyte-source-ip2whois


Nameairbyte-source-ip2whois JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://airbyte.com
SummarySource implementation for Ip2whois.
upload_time2024-05-01 18:54:04
maintainerNone
docs_urlNone
authorAirbyte
requires_python<3.12,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Ip2Whois source connector


This is the repository for the Ip2Whois source connector, written in Python.
For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/ip2whois).

## Local development

### Prerequisites
* Python (~=3.9)
* Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)


### Installing the connector
From this connector directory, run:
```bash
poetry install --with dev
```


### Create credentials
**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/ip2whois)
to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_ip2whois/spec.yaml` file.
Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
See `sample_files/sample_config.json` for a sample config file.


### Locally running the connector
```
poetry run source-ip2whois spec
poetry run source-ip2whois check --config secrets/config.json
poetry run source-ip2whois discover --config secrets/config.json
poetry run source-ip2whois read --config secrets/config.json --catalog sample_files/configured_catalog.json
```

### Running unit tests
To run unit tests locally, from the connector directory run:
```
poetry run pytest unit_tests
```

### Building the docker image
1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)
2. Run the following command to build the docker image:
```bash
airbyte-ci connectors --name=source-ip2whois build
```

An image will be available on your host with the tag `airbyte/source-ip2whois:dev`.


### Running as a docker container
Then run any of the connector commands as follows:
```
docker run --rm airbyte/source-ip2whois:dev spec
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-ip2whois:dev check --config /secrets/config.json
docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-ip2whois:dev discover --config /secrets/config.json
docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-ip2whois:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
```

### Running our CI test suite
You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
```bash
airbyte-ci connectors --name=source-ip2whois test
```

### Customizing acceptance Tests
Customize `acceptance-test-config.yml` file to configure acceptance tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.

### Dependency Management
All of your dependencies should be managed via Poetry. 
To add a new dependency, run:
```bash
poetry add <package-name>
```

Please commit the changes to `pyproject.toml` and `poetry.lock` files.

## Publishing a new version of the connector
You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-ip2whois test`
2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)): 
    - bump the `dockerImageTag` value in in `metadata.yaml`
    - bump the `version` value in `pyproject.toml`
3. Make sure the `metadata.yaml` content is up to date.
4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/ip2whois.md`).
5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
6. Pat yourself on the back for being an awesome contributor.
7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.
            

Raw data

            {
    "_id": null,
    "home_page": "https://airbyte.com",
    "name": "airbyte-source-ip2whois",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Airbyte",
    "author_email": "contact@airbyte.io",
    "download_url": "https://files.pythonhosted.org/packages/a4/4c/f2be08c488edece116b2e02237f3d4cfd02755904520ce2551c75fd9daab/airbyte_source_ip2whois-0.1.3.tar.gz",
    "platform": null,
    "description": "# Ip2Whois source connector\n\n\nThis is the repository for the Ip2Whois source connector, written in Python.\nFor information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.com/integrations/sources/ip2whois).\n\n## Local development\n\n### Prerequisites\n* Python (~=3.9)\n* Poetry (~=1.7) - installation instructions [here](https://python-poetry.org/docs/#installation)\n\n\n### Installing the connector\nFrom this connector directory, run:\n```bash\npoetry install --with dev\n```\n\n\n### Create credentials\n**If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.com/integrations/sources/ip2whois)\nto generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_ip2whois/spec.yaml` file.\nNote that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.\nSee `sample_files/sample_config.json` for a sample config file.\n\n\n### Locally running the connector\n```\npoetry run source-ip2whois spec\npoetry run source-ip2whois check --config secrets/config.json\npoetry run source-ip2whois discover --config secrets/config.json\npoetry run source-ip2whois read --config secrets/config.json --catalog sample_files/configured_catalog.json\n```\n\n### Running unit tests\nTo run unit tests locally, from the connector directory run:\n```\npoetry run pytest unit_tests\n```\n\n### Building the docker image\n1. Install [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md)\n2. Run the following command to build the docker image:\n```bash\nairbyte-ci connectors --name=source-ip2whois build\n```\n\nAn image will be available on your host with the tag `airbyte/source-ip2whois:dev`.\n\n\n### Running as a docker container\nThen run any of the connector commands as follows:\n```\ndocker run --rm airbyte/source-ip2whois:dev spec\ndocker run --rm -v $(pwd)/secrets:/secrets airbyte/source-ip2whois:dev check --config /secrets/config.json\ndocker run --rm -v $(pwd)/secrets:/secrets airbyte/source-ip2whois:dev discover --config /secrets/config.json\ndocker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-ip2whois:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json\n```\n\n### Running our CI test suite\nYou can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):\n```bash\nairbyte-ci connectors --name=source-ip2whois test\n```\n\n### Customizing acceptance Tests\nCustomize `acceptance-test-config.yml` file to configure acceptance tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.\nIf your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.\n\n### Dependency Management\nAll of your dependencies should be managed via Poetry. \nTo add a new dependency, run:\n```bash\npoetry add <package-name>\n```\n\nPlease commit the changes to `pyproject.toml` and `poetry.lock` files.\n\n## Publishing a new version of the connector\nYou've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?\n1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-ip2whois test`\n2. Bump the connector version (please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors)): \n    - bump the `dockerImageTag` value in in `metadata.yaml`\n    - bump the `version` value in `pyproject.toml`\n3. Make sure the `metadata.yaml` content is up to date.\n4. Make sure the connector documentation and its changelog is up to date (`docs/integrations/sources/ip2whois.md`).\n5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).\n6. Pat yourself on the back for being an awesome contributor.\n7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.\n8. Once your PR is merged, the new version of the connector will be automatically published to Docker Hub and our connector registry.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Source implementation for Ip2whois.",
    "version": "0.1.3",
    "project_urls": {
        "Documentation": "https://docs.airbyte.com/integrations/sources/ip2whois",
        "Homepage": "https://airbyte.com",
        "Repository": "https://github.com/airbytehq/airbyte"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9906ebf21715ff06bac22dfb954961431863efa60e338275466cfe697e81e01a",
                "md5": "923ce81c295c6c0f5085805d9203da96",
                "sha256": "979dea56ae82c60460dc13c3c7f90b516b34f94ef34c7f5d497d44ac9e9328b8"
            },
            "downloads": -1,
            "filename": "airbyte_source_ip2whois-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "923ce81c295c6c0f5085805d9203da96",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.9",
            "size": 5932,
            "upload_time": "2024-05-01T18:54:02",
            "upload_time_iso_8601": "2024-05-01T18:54:02.518462Z",
            "url": "https://files.pythonhosted.org/packages/99/06/ebf21715ff06bac22dfb954961431863efa60e338275466cfe697e81e01a/airbyte_source_ip2whois-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a44cf2be08c488edece116b2e02237f3d4cfd02755904520ce2551c75fd9daab",
                "md5": "5662bdd618bbc59bcefca39d0d6ae781",
                "sha256": "98502f1066aaa2a85463f7023f53405fab777f085b4342e4592b8388a19665c3"
            },
            "downloads": -1,
            "filename": "airbyte_source_ip2whois-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "5662bdd618bbc59bcefca39d0d6ae781",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.9",
            "size": 4430,
            "upload_time": "2024-05-01T18:54:04",
            "upload_time_iso_8601": "2024-05-01T18:54:04.119736Z",
            "url": "https://files.pythonhosted.org/packages/a4/4c/f2be08c488edece116b2e02237f3d4cfd02755904520ce2551c75fd9daab/airbyte_source_ip2whois-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-01 18:54:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "airbytehq",
    "github_project": "airbyte",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "airbyte-source-ip2whois"
}
        
Elapsed time: 0.24522s