Create a new namespace. Parameters ---------- subject : str An identifier for a group of related items. schema : str The data related to the ``subject``. fractal : str The time fractal of the data, e.g., "5m" or "1d".
| 60 | # |
| 61 | |
| 62 | class Space: |
| 63 | """Create a new namespace. |
| 64 | |
| 65 | Parameters |
| 66 | ---------- |
| 67 | subject : str |
| 68 | An identifier for a group of related items. |
| 69 | schema : str |
| 70 | The data related to the ``subject``. |
| 71 | fractal : str |
| 72 | The time fractal of the data, e.g., "5m" or "1d". |
| 73 | |
| 74 | """ |
| 75 | |
| 76 | # __init__ |
| 77 | |
| 78 | def __init__(self, |
| 79 | subject = "stock", |
| 80 | schema = "prices", |
| 81 | fractal = "1d"): |
| 82 | # code |
| 83 | self.subject = subject |
| 84 | self.schema = schema |
| 85 | self.fractal = fractal |
| 86 | |
| 87 | # __str__ |
| 88 | |
| 89 | def __str__(self): |
| 90 | return space_name(self.subject, self.schema, self.fractal) |
no outgoing calls
no test coverage detected