Metadata-Version: 2.1
Name: pycfdns
Version: 0.1.0
Summary: Update Cloudflare DNS A-records.
Home-page: https://github.com/ludeeus/pycfdns
Author: Joakim Sorensen
Author-email: hi@ludeeus.dev
License: UNKNOWN
Description: # Update CloudFlare DNS A records.
        
        _Update A records in your DNS zone._
        
        ## Install
        
        ```bash
        python3 -m pip install pycfdns
        ```
        
        ## Example
        
        ```python
        """Example usage of pycfdns."""
        import asyncio
        import aiohttp
        from pycfdns import CloudflareUpdater
        
        EMAIL = "example@example.com"
        TOKEN = "5cdba21d55cdba21d55cdba21d5"
        ZONE = "example.com"
        UPDATE_RECORDS = ["test"]
        
        async def example():
            """Example usage of pycfdns."""
            async with aiohttp.ClientSession() as session:
                cfupdate = CloudflareUpdater(session, EMAIL, TOKEN, ZONE, UPDATE_RECORDS)
                zone_id = await cfupdate.get_zone_id()
                records = await cfupdate.get_record_info(zone_id)
                for record in records:
                    print(record.record_name)
                await cfupdate.update_records(zone_id, records)
        
        
        asyncio.get_event_loop().run_until_complete(example())
        
        ```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
